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
|
|
|
|
|
2024-09-04 17:50:42 +02:00
|
|
|
#include <QskProgressRing.h>
|
2023-01-04 17:17:17 +01:00
|
|
|
|
2024-09-04 17:50:42 +02:00
|
|
|
class QskTextLabel;
|
|
|
|
|
2024-09-05 09:15:25 +02:00
|
|
|
class ValueMeter : public QskProgressRing
|
2023-01-04 17:17:17 +01:00
|
|
|
{
|
|
|
|
public:
|
2024-09-05 09:15:25 +02:00
|
|
|
ValueMeter( QQuickItem* parent = nullptr );
|
2024-09-04 17:50:42 +02:00
|
|
|
|
2024-09-05 09:15:25 +02:00
|
|
|
void setTextColor( const QColor& );
|
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual QString text( qreal ) const;
|
2023-01-05 17:08:50 +01:00
|
|
|
|
|
|
|
private:
|
2024-09-04 17:50:42 +02:00
|
|
|
void updateMeter( qreal value );
|
|
|
|
QskTextLabel* m_label = nullptr;
|
2023-01-04 17:17:17 +01:00
|
|
|
};
|