2019-06-20 12:02:28 +02:00
|
|
|
/******************************************************************************
|
|
|
|
* QSkinny - Copyright (C) 2016 Uwe Rathmann
|
|
|
|
* This file may be used under the terms of the 3-clause BSD License
|
|
|
|
*****************************************************************************/
|
|
|
|
|
2018-04-05 11:23:38 +02:00
|
|
|
#ifndef SPEEDOMETER_H
|
|
|
|
#define SPEEDOMETER_H
|
|
|
|
|
2020-07-25 12:50:26 +02:00
|
|
|
#include <QskBoundedValueControl.h>
|
2018-04-05 11:23:38 +02:00
|
|
|
|
2020-07-25 12:50:26 +02:00
|
|
|
class Speedometer : public QskBoundedValueControl
|
2018-04-05 11:23:38 +02:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
2018-08-03 08:15:28 +02:00
|
|
|
public:
|
2018-05-09 08:31:43 +02:00
|
|
|
QSK_SUBCONTROLS( Panel, Labels, NeedleHead, Needle )
|
2018-04-05 11:23:38 +02:00
|
|
|
|
|
|
|
Speedometer( QQuickItem* parent = nullptr );
|
|
|
|
|
2018-04-05 11:23:52 +02:00
|
|
|
QVector< QString > labels() const;
|
|
|
|
void setLabels( const QVector< QString >& labels );
|
|
|
|
|
2018-08-03 08:15:28 +02:00
|
|
|
private:
|
2018-04-05 11:23:52 +02:00
|
|
|
QVector< QString > m_labels;
|
2018-04-05 11:23:38 +02:00
|
|
|
};
|
|
|
|
|
2019-06-20 12:02:28 +02:00
|
|
|
#endif
|