Maraiah/tycho/cc/mapprops.cc

32 lines
562 B
C++
Raw Permalink Normal View History

#include "tycho.h"
MapProps::MapProps(Project *parent) :
2019-07-05 20:21:11 -07:00
QDialog(parent),
m_mapModel(parent->mapModel())
{
2019-07-05 20:21:11 -07:00
setupUi(this);
2019-07-05 20:21:11 -07:00
setModal(true);
2019-07-05 20:21:11 -07:00
auto bbox = new QDialogButtonBox(this);
bbox->setStandardButtons(QDialogButtonBox::Cancel | QDialogButtonBox::Ok);
verticalLayout->addWidget(bbox);
2019-07-05 20:21:11 -07:00
connect(bbox, &QDialogButtonBox::accepted, this, &QDialog::accept);
connect(bbox, &QDialogButtonBox::rejected, this, &QDialog::reject);
2019-07-05 20:21:11 -07:00
dbgPrintFunc();
}
MapProps::~MapProps()
{
2019-07-05 20:21:11 -07:00
dbgPrintFunc();
}
void MapProps::accept()
{
2019-07-05 20:21:11 -07:00
done(QDialog::Accepted);
}
// EOF