qskinny/examples/automotive/Speedometer.h
2018-04-05 11:23:48 +02:00

25 lines
446 B
C++

#ifndef SPEEDOMETER_H
#define SPEEDOMETER_H
#include <QskControl.h>
class Speedometer : public QskControl
{
Q_OBJECT
public:
QSK_SUBCONTROLS( Panel, Ticks, Numbers, Needle )
Speedometer( QQuickItem* parent = nullptr );
virtual QSizeF contentsSizeHint() const override;
float value() const;
void setValue( float value ); // angle; should be within a set range
private:
float m_value;
};
#endif // SPEEDOMETER_H