Thermostat pour piloter jusqu'à 4 radiateurs avec fil pilote
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

42 lines
872 B

// SPDX-License-Identifier: GPL-3.0-or-later
/*
* Qt mutizone MQTT thermostat
*
* Copyright (C) 2019 Richard Genoud
*
*/
#include <QPushButton>
#include <QVBoxLayout>
#include <QWidget>
#include <QLocale>
#include <QLabel>
#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: */