From b2fa78a20b6fc4cc50c7ebddd64e6298ec094b77 Mon Sep 17 00:00:00 2001 From: Richard Genoud Date: Mon, 6 Jan 2020 19:39:37 +0100 Subject: [PATCH] fix: bigger clickable zone --- soft/thermostat/src/mainwindow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/soft/thermostat/src/mainwindow.cpp b/soft/thermostat/src/mainwindow.cpp index ca7cdc4..1424775 100644 --- a/soft/thermostat/src/mainwindow.cpp +++ b/soft/thermostat/src/mainwindow.cpp @@ -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()));