qskinny/playground/dashboard/Speedometer.h

25 lines
652 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
*****************************************************************************/
2021-08-04 10:11:12 +02:00
#pragma once
#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;
};