Browse Source

thermostat: use a bigger font

master
rico rico 5 years ago
parent
commit
fcb99d824e
3 changed files with 17 additions and 0 deletions
  1. +5
    -0
      soft/thermostat/src/mainwindow.cpp
  2. +8
    -0
      soft/thermostat/src/menu_dlg.cpp
  3. +4
    -0
      soft/thermostat/src/zoneitem.cpp

+ 5
- 0
soft/thermostat/src/mainwindow.cpp View File

@ -69,6 +69,11 @@ MainWindow::MainWindow(QWidget *parent) :
QSizePolicy::MinimumExpanding,
QSizePolicy::PushButton);
QFont font = menu_btn->font();
font.setPointSize(18);
menu_btn->setFont(font);
m_state_btn.setFont(font);
menu_btn->setSizePolicy(*szPolicy);
m_state_btn.setSizePolicy(*szPolicy);


+ 8
- 0
soft/thermostat/src/menu_dlg.cpp View File

@ -48,6 +48,14 @@ MenuDlg::MenuDlg(QWidget *parent, Qt::WindowFlags f) :
exit_btn->setSizePolicy(*szPolicy);
back_btn->setSizePolicy(*szPolicy);
QFont font = holiday_btn->font();
font.setPointSize(18);
holiday_btn->setFont(font);
save_cfg_btn->setFont(font);
load_cfg_btn->setFont(font);
exit_btn->setFont(font);
back_btn->setFont(font);
this->setLayout(mainLayout);
}


+ 4
- 0
soft/thermostat/src/zoneitem.cpp View File

@ -21,6 +21,10 @@ ZoneItem::ZoneItem(const QString &zoneName, QWidget *parent, Qt::WindowFlags f)
m_name = zoneName;
m_heating_on = false;
QFont font = this->font();
font.setPointSize(18);
this->setFont(font);
this->setText(zoneName);
m_temperature_value = FORCE_OFF;


Loading…
Cancel
Save