qskinny/examples/automotive/Speedometer.h

28 lines
691 B
C
Raw Normal View History

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
*****************************************************************************/
#ifndef SPEEDOMETER_H
#define SPEEDOMETER_H
#include <QskBoundedValueInput.h>
class Speedometer : public QskBoundedValueInput
{
Q_OBJECT
2018-08-03 08:15:28 +02:00
public:
2020-12-18 16:32:54 +01:00
QSK_SUBCONTROLS( Panel, TickLabels, Knob, Needle )
Speedometer( QQuickItem* parent = nullptr );
2020-12-18 16:32:54 +01:00
QVector< QString > tickLabels() const;
void setTickLabels( const QVector< QString >& );
2018-08-03 08:15:28 +02:00
private:
2020-12-18 16:32:54 +01:00
QVector< QString > m_tickLabels;
};
2019-06-20 12:02:28 +02:00
#endif