2019-06-20 10:02:28 +00:00
|
|
|
/******************************************************************************
|
|
|
|
* QSkinny - Copyright (C) 2016 Uwe Rathmann
|
|
|
|
* This file may be used under the terms of the 3-clause BSD License
|
|
|
|
*****************************************************************************/
|
|
|
|
|
2018-04-05 09:23:38 +00:00
|
|
|
#include "Speedometer.h"
|
|
|
|
|
|
|
|
#include <QskSkinlet.h>
|
2018-04-05 09:23:52 +00:00
|
|
|
#include <QskSkinnable.h>
|
2018-04-05 09:23:38 +00:00
|
|
|
|
|
|
|
QSK_SUBCONTROL( Speedometer, Panel )
|
2020-12-18 15:32:54 +00:00
|
|
|
QSK_SUBCONTROL( Speedometer, TickLabels )
|
|
|
|
QSK_SUBCONTROL( Speedometer, Knob )
|
2018-04-05 09:23:38 +00:00
|
|
|
QSK_SUBCONTROL( Speedometer, Needle )
|
|
|
|
|
2018-08-03 06:15:28 +00:00
|
|
|
Speedometer::Speedometer( QQuickItem* parent )
|
2020-07-25 11:05:19 +00:00
|
|
|
: QskBoundedValueInput( parent )
|
2018-04-05 09:23:38 +00:00
|
|
|
{
|
2018-04-05 09:23:48 +00:00
|
|
|
}
|
|
|
|
|
2020-12-18 15:32:54 +00:00
|
|
|
QVector< QString > Speedometer::tickLabels() const
|
2018-04-05 09:23:52 +00:00
|
|
|
{
|
2020-12-18 15:32:54 +00:00
|
|
|
return m_tickLabels;
|
2018-04-05 09:23:52 +00:00
|
|
|
}
|
|
|
|
|
2020-12-18 15:32:54 +00:00
|
|
|
void Speedometer::setTickLabels( const QVector< QString >& labels )
|
2018-04-05 09:23:52 +00:00
|
|
|
{
|
2020-12-18 15:32:54 +00:00
|
|
|
m_tickLabels = labels;
|
2018-04-05 09:23:52 +00:00
|
|
|
}
|
|
|
|
|
2018-04-05 09:23:38 +00:00
|
|
|
#include "moc_Speedometer.cpp"
|