Browse Source

thermostat: menu: remove unused load/save configuration

master
Richard Genoud 4 years ago
parent
commit
79ecc91c3b
1 changed files with 1 additions and 11 deletions
  1. +1
    -11
      soft/thermostat/src/menu_dlg.cpp

+ 1
- 11
soft/thermostat/src/menu_dlg.cpp View File

@ -25,26 +25,18 @@ MenuDlg::MenuDlg(QWidget *parent, Qt::WindowFlags f) :
QGridLayout *mainLayout = new QGridLayout; QGridLayout *mainLayout = new QGridLayout;
QPushButton *holiday_btn = new QPushButton(tr("Holidays"), this); QPushButton *holiday_btn = new QPushButton(tr("Holidays"), this);
QPushButton *save_cfg_btn = new QPushButton(tr("Save configuration"), this);
QPushButton *load_cfg_btn = new QPushButton(tr("Load configuration"), this);
QPushButton *exit_btn = new QPushButton(tr("Exit Application"), this); QPushButton *exit_btn = new QPushButton(tr("Exit Application"), this);
QPushButton *back_btn = new QPushButton(tr("Back"), this); QPushButton *back_btn = new QPushButton(tr("Back"), this);
mainLayout->addWidget(holiday_btn, 0, 0); mainLayout->addWidget(holiday_btn, 0, 0);
mainLayout->addWidget(save_cfg_btn, 0, 1);
mainLayout->addWidget(load_cfg_btn, 0, 2);
mainLayout->addWidget(exit_btn, 1, 0); mainLayout->addWidget(exit_btn, 1, 0);
mainLayout->addWidget(back_btn, 1, 2);
mainLayout->addWidget(back_btn, 1, 1);
connect(holiday_btn, SIGNAL(clicked(void)), this, SIGNAL(show_holiday_dlg(void))); connect(holiday_btn, SIGNAL(clicked(void)), this, SIGNAL(show_holiday_dlg(void)));
connect(save_cfg_btn, SIGNAL(clicked(void)), this, SIGNAL(show_save_cfg_dlg(void)));
connect(load_cfg_btn, SIGNAL(clicked(void)), this, SIGNAL(show_load_cfg_dlg(void)));
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); holiday_btn->setSizePolicy(*szPolicy);
save_cfg_btn->setSizePolicy(*szPolicy);
load_cfg_btn->setSizePolicy(*szPolicy);
exit_btn->setSizePolicy(*szPolicy); exit_btn->setSizePolicy(*szPolicy);
back_btn->setSizePolicy(*szPolicy); back_btn->setSizePolicy(*szPolicy);
@ -52,8 +44,6 @@ MenuDlg::MenuDlg(QWidget *parent, Qt::WindowFlags f) :
font.setPointSize(12); font.setPointSize(12);
font.setBold(true); font.setBold(true);
holiday_btn->setFont(font); holiday_btn->setFont(font);
save_cfg_btn->setFont(font);
load_cfg_btn->setFont(font);
exit_btn->setFont(font); exit_btn->setFont(font);
back_btn->setFont(font); back_btn->setFont(font);


Loading…
Cancel
Save