From f7571a3c85e1e29dabc7f6382b3bdbe6cf100483 Mon Sep 17 00:00:00 2001 From: Richard Genoud Date: Sat, 4 Jan 2020 15:29:22 +0100 Subject: [PATCH] Revert "thermostat: show temperature in red if heater is on" This reverts commit 21b35213265ca2de77977dffcdd5e27df5058f28. QPushButtons don't handle rich text format --- soft/thermostat/src/zoneitem.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/soft/thermostat/src/zoneitem.cpp b/soft/thermostat/src/zoneitem.cpp index 8e4e9f9..3bc9cb5 100644 --- a/soft/thermostat/src/zoneitem.cpp +++ b/soft/thermostat/src/zoneitem.cpp @@ -47,15 +47,10 @@ void ZoneItem::refresh(void) { QString text; - if ((m_temperature_value == FORCE_OFF) || !m_available) { + if ((m_temperature_value == FORCE_OFF) || !m_available) text += QString("-"); - } else { - if (m_heating_on) - text.append(QString("")); + else text += QString::number(m_temperature_value); - if (m_heating_on) - text.append(QString("")); - } text += QString("°C / "); if (m_target_temperature == FORCE_OFF) {