diff --git a/soft/thermostat/src/menu_dlg.cpp b/soft/thermostat/src/menu_dlg.cpp index 67f2ca2..25ad672 100644 --- a/soft/thermostat/src/menu_dlg.cpp +++ b/soft/thermostat/src/menu_dlg.cpp @@ -18,6 +18,10 @@ MenuDlg::MenuDlg(QWidget *parent, Qt::WindowFlags f) : QWidget(parent, f) { + QSizePolicy *szPolicy = new QSizePolicy(QSizePolicy::Minimum, + QSizePolicy::MinimumExpanding, + QSizePolicy::PushButton); + QGridLayout *mainLayout = new QGridLayout; 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(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); }