qskinny/examples/iotdashboard/StorageMeter.h

23 lines
695 B
C
Raw Normal View History

2023-01-05 17:08:50 +01:00
/******************************************************************************
* Copyright (C) 2022 Edelhirsch Software GmbH
2023-04-06 10:15:03 +02:00
* SPDX-License-Identifier: BSD-3-Clause
2023-01-05 17:08:50 +01:00
*****************************************************************************/
2023-01-04 17:17:17 +01:00
#pragma once
2023-01-05 17:08:50 +01:00
#include "CircularProgressBar.h"
#include <QskControl.h>
2023-01-04 17:17:17 +01:00
2023-01-05 17:08:50 +01:00
class StorageMeter final : public CircularProgressBar
2023-01-04 17:17:17 +01:00
{
public:
2023-01-05 17:08:50 +01:00
QSK_SUBCONTROLS( Status )
explicit StorageMeter( QQuickItem* parent = nullptr ) noexcept;
2023-01-04 17:17:17 +01:00
public Q_SLOTS:
2023-01-05 17:08:50 +01:00
void setValue( qreal value );
private:
QSizeF contentsSizeHint( Qt::SizeHint which, const QSizeF& constraint ) const override;
class QskTextLabel* label = nullptr;
2023-01-04 17:17:17 +01:00
};