Browse Source

thermostat: make text fit into Rpi screen

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

+ 1
- 1
soft/thermostat/src/mainwindow.cpp View File

@ -70,7 +70,7 @@ MainWindow::MainWindow(QWidget *parent) :
QSizePolicy::PushButton);
QFont font = menu_btn->font();
font.setPointSize(18);
font.setPointSize(12);
menu_btn->setFont(font);
m_state_btn.setFont(font);


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

@ -49,7 +49,7 @@ MenuDlg::MenuDlg(QWidget *parent, Qt::WindowFlags f) :
back_btn->setSizePolicy(*szPolicy);
QFont font = holiday_btn->font();
font.setPointSize(18);
font.setPointSize(12);
holiday_btn->setFont(font);
save_cfg_btn->setFont(font);
load_cfg_btn->setFont(font);


+ 3
- 3
soft/thermostat/src/zoneitem.cpp View File

@ -22,7 +22,7 @@ ZoneItem::ZoneItem(const QString &zoneName, QWidget *parent, Qt::WindowFlags f)
m_heating_on = false;
QFont font = this->font();
font.setPointSize(18);
font.setPointSize(12);
this->setFont(font);
this->setText(zoneName);
@ -56,7 +56,7 @@ void ZoneItem::refresh(void)
QString text;
/* Zone name */
text += QString("<center><b>") + m_name + QString("</b></center><br/>");
text += QString("<center><b>") + m_name + QString("</b></center>");
/* Temperature */
text += QString("<center><b>");
@ -81,7 +81,7 @@ void ZoneItem::refresh(void)
text += QString::number(m_target_temperature);
}
text += QString("°C").toHtmlEscaped();
text += QString("</b></center><br/>");
text += QString("</b></center>");
/* hygrometry */
text += QString("<center><b>");


Loading…
Cancel
Save