qskinny/playground/dials/Dial.cpp

32 lines
713 B
C++
Raw Normal View History

2019-06-20 10:02:28 +00:00
/******************************************************************************
2024-01-17 13:31:45 +00:00
* QSkinny - Copyright (C) The authors
2023-04-06 07:23:37 +00:00
* SPDX-License-Identifier: BSD-3-Clause
2019-06-20 10:02:28 +00:00
*****************************************************************************/
2022-07-14 16:50:17 +00:00
#include "Dial.h"
#include <QskSkinlet.h>
#include <QskSkinnable.h>
2022-07-14 16:50:17 +00:00
QSK_SUBCONTROL( Dial, Panel )
QSK_SUBCONTROL( Dial, TickLabels )
QSK_SUBCONTROL( Dial, Knob )
QSK_SUBCONTROL( Dial, Needle )
2022-07-14 16:50:17 +00:00
Dial::Dial( QQuickItem* parent )
: QskBoundedValueInput( parent )
{
2018-04-05 09:23:48 +00:00
}
2022-07-14 16:50:17 +00:00
QVector< QString > Dial::tickLabels() const
{
2020-12-18 15:32:54 +00:00
return m_tickLabels;
}
2022-07-14 16:50:17 +00:00
void Dial::setTickLabels( const QVector< QString >& labels )
{
2020-12-18 15:32:54 +00:00
m_tickLabels = labels;
}
2022-07-14 16:50:17 +00:00
#include "moc_Dial.cpp"