qskinny/examples/iotdashboard/StorageMeter.h

25 lines
641 B
C
Raw Normal View History

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