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
|
|
|
|
*****************************************************************************/
|
|
|
|
|
2022-07-14 18:50:17 +02:00
|
|
|
#include "Dial.h"
|
2018-04-05 11:23:38 +02:00
|
|
|
|
|
|
|
#include <QskSkinlet.h>
|
2018-04-05 11:23:52 +02:00
|
|
|
#include <QskSkinnable.h>
|
2018-04-05 11:23:38 +02:00
|
|
|
|
2022-07-14 18:50:17 +02:00
|
|
|
QSK_SUBCONTROL( Dial, Panel )
|
|
|
|
QSK_SUBCONTROL( Dial, TickLabels )
|
|
|
|
QSK_SUBCONTROL( Dial, Knob )
|
|
|
|
QSK_SUBCONTROL( Dial, Needle )
|
2018-04-05 11:23:38 +02:00
|
|
|
|
2022-07-14 18:50:17 +02:00
|
|
|
Dial::Dial( QQuickItem* parent )
|
2020-07-25 13:05:19 +02:00
|
|
|
: QskBoundedValueInput( parent )
|
2018-04-05 11:23:38 +02:00
|
|
|
{
|
2018-04-05 11:23:48 +02:00
|
|
|
}
|
|
|
|
|
2022-07-14 18:50:17 +02:00
|
|
|
QVector< QString > Dial::tickLabels() const
|
2018-04-05 11:23:52 +02:00
|
|
|
{
|
2020-12-18 16:32:54 +01:00
|
|
|
return m_tickLabels;
|
2018-04-05 11:23:52 +02:00
|
|
|
}
|
|
|
|
|
2022-07-14 18:50:17 +02:00
|
|
|
void Dial::setTickLabels( const QVector< QString >& labels )
|
2018-04-05 11:23:52 +02:00
|
|
|
{
|
2020-12-18 16:32:54 +01:00
|
|
|
m_tickLabels = labels;
|
2018-04-05 11:23:52 +02:00
|
|
|
}
|
|
|
|
|
2022-07-14 18:50:17 +02:00
|
|
|
#include "moc_Dial.cpp"
|