qskinny/examples/iotdashboard/BoxWithButtons.h
2023-04-06 10:15:03 +02:00

30 lines
753 B
C++

/******************************************************************************
* Copyright (C) 2021 Edelhirsch Software GmbH
* SPDX-License-Identifier: BSD-3-Clause
*****************************************************************************/
#pragma once
#include "Box.h"
class QskTextLabel;
class BoxWithButtons : public Box
{
public:
QSK_SUBCONTROLS( Panel, ValuePanel, ValueText )
BoxWithButtons(
const QString& title, const QString& prefix,
const int initialValue, const QString& suffix,
bool isBright, QQuickItem* parent = nullptr );
private:
void setValue( const int value );
const QString m_prefix;
int m_value;
const QString m_suffix;
QskTextLabel* m_valueLabel;
};