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