qskinny/examples/automotive/Speedometer.h
2021-08-04 10:11:12 +02:00

25 lines
652 B
C++

/******************************************************************************
* QSkinny - Copyright (C) 2016 Uwe Rathmann
* This file may be used under the terms of the 3-clause BSD License
*****************************************************************************/
#pragma once
#include <QskBoundedValueInput.h>
class Speedometer : public QskBoundedValueInput
{
Q_OBJECT
public:
QSK_SUBCONTROLS( Panel, TickLabels, Knob, Needle )
Speedometer( QQuickItem* parent = nullptr );
QVector< QString > tickLabels() const;
void setTickLabels( const QVector< QString >& );
private:
QVector< QString > m_tickLabels;
};