|
@ -18,6 +18,10 @@ |
|
|
MenuDlg::MenuDlg(QWidget *parent, Qt::WindowFlags f) : |
|
|
MenuDlg::MenuDlg(QWidget *parent, Qt::WindowFlags f) : |
|
|
QWidget(parent, f) |
|
|
QWidget(parent, f) |
|
|
{ |
|
|
{ |
|
|
|
|
|
QSizePolicy *szPolicy = new QSizePolicy(QSizePolicy::Minimum, |
|
|
|
|
|
QSizePolicy::MinimumExpanding, |
|
|
|
|
|
QSizePolicy::PushButton); |
|
|
|
|
|
|
|
|
QGridLayout *mainLayout = new QGridLayout; |
|
|
QGridLayout *mainLayout = new QGridLayout; |
|
|
|
|
|
|
|
|
QPushButton *holiday_btn = new QPushButton(tr("Holidays"), this); |
|
|
QPushButton *holiday_btn = new QPushButton(tr("Holidays"), this); |
|
@ -38,6 +42,12 @@ MenuDlg::MenuDlg(QWidget *parent, Qt::WindowFlags f) : |
|
|
connect(back_btn, SIGNAL(clicked(void)), this, SIGNAL(closed(void))); |
|
|
connect(back_btn, SIGNAL(clicked(void)), this, SIGNAL(closed(void))); |
|
|
connect(exit_btn, SIGNAL(clicked(void)), this, SLOT(show_confirm_exit_dlg(void))); |
|
|
connect(exit_btn, SIGNAL(clicked(void)), this, SLOT(show_confirm_exit_dlg(void))); |
|
|
|
|
|
|
|
|
|
|
|
holiday_btn->setSizePolicy(*szPolicy); |
|
|
|
|
|
save_cfg_btn->setSizePolicy(*szPolicy); |
|
|
|
|
|
load_cfg_btn->setSizePolicy(*szPolicy); |
|
|
|
|
|
exit_btn->setSizePolicy(*szPolicy); |
|
|
|
|
|
back_btn->setSizePolicy(*szPolicy); |
|
|
|
|
|
|
|
|
this->setLayout(mainLayout); |
|
|
this->setLayout(mainLayout); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|