// SPDX-License-Identifier: GPL-3.0-or-later /* * Qt mutizone MQTT thermostat * * Copyright (C) 2019 Richard Genoud * */ #include #include #include #include #include #include "zoneitem.h" ZoneItem::ZoneItem(const QString &zoneName, QWidget *parent) : QWidget(parent) { m_zoneNameBtn.setText(zoneName); m_zoneNameBtn.setFlat(true); m_temperatureBtn.setText("20.3°C / 20°C"); m_temperatureBtn.setFlat(true); m_hygroBtn.setText("45%h"); m_hygroBtn.setFlat(true); /* * Layout for the left part of the window */ QVBoxLayout *topLayout = new QVBoxLayout; topLayout->addWidget(&m_zoneNameBtn); topLayout->addWidget(&m_temperatureBtn); topLayout->addWidget(&m_hygroBtn); this->setLayout(topLayout); } ZoneItem::~ZoneItem() { } /* vim: set tabstop=8 shiftwidth=8 softtabstop=0 noexpandtab: */