qskinny/examples/automotive/Speedometer.h

28 lines
692 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 <QskBoundedValueControl.h>
class Speedometer : public QskBoundedValueControl
{
Q_OBJECT
2018-08-03 08:15:28 +02:00
public:
QSK_SUBCONTROLS( Panel, Labels, NeedleHead, Needle )
Speedometer( QQuickItem* parent = nullptr );
QVector< QString > labels() const;
void setLabels( const QVector< QString >& labels );
2018-08-03 08:15:28 +02:00
private:
QVector< QString > m_labels;
};
2019-06-20 12:02:28 +02:00
#endif