Browse Source

fix: bigger clickable zone

master
rico rico 4 years ago
parent
commit
b2fa78a20b
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      soft/thermostat/src/mainwindow.cpp

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

@ -31,6 +31,8 @@ MainWindow::MainWindow(QWidget *parent) :
for (int i = 0; i < s->nbZones(); i++) {
zone = new ZoneItem(s->m_rooms.at(i).name, this);
zone->m_zoneNameBtn.setProperty("idx", i);
zone->m_temperatureBtn.setProperty("idx", i);
zone->m_hygroBtn.setProperty("idx", i);
zone->m_target_temperature = get_target_temperature(i);
/* TODO: make a big clickable zone instead of 3 tiny buttons */
connect(&(zone->m_zoneNameBtn), SIGNAL(clicked()), this, SLOT(show_boost()));


Loading…
Cancel
Save