2018-04-05 11:23:38 +02:00
|
|
|
#ifndef SPEEDOMETER_H
|
|
|
|
#define SPEEDOMETER_H
|
|
|
|
|
2018-05-09 08:31:43 +02:00
|
|
|
#include <QskRangeControl.h>
|
2018-04-05 11:23:38 +02:00
|
|
|
|
2018-05-09 08:31:43 +02:00
|
|
|
class Speedometer : public QskRangeControl
|
2018-04-05 11:23:38 +02:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
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-04-05 11:23:48 +02:00
|
|
|
private:
|
2018-04-05 11:23:52 +02:00
|
|
|
float m_labelsStep;
|
|
|
|
QVector< QString > m_labels;
|
2018-04-05 11:23:38 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // SPEEDOMETER_H
|