2019-06-20 12:02:28 +02:00
|
|
|
/******************************************************************************
|
2024-01-17 14:31:45 +01:00
|
|
|
* QSkinny - Copyright (C) The authors
|
2023-04-06 09:23:37 +02:00
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
2019-06-20 12:02:28 +02:00
|
|
|
*****************************************************************************/
|
|
|
|
|
2021-08-04 10:11:12 +02:00
|
|
|
#pragma once
|
2018-04-05 11:23:38 +02:00
|
|
|
|
2020-07-25 13:05:19 +02:00
|
|
|
#include <QskBoundedValueInput.h>
|
2018-04-05 11:23:38 +02:00
|
|
|
|
2022-07-14 18:50:17 +02:00
|
|
|
class Dial : public QskBoundedValueInput
|
2018-04-05 11:23:38 +02:00
|
|
|
{
|
|
|
|
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 )
|
2018-04-05 11:23:38 +02:00
|
|
|
|
2022-07-14 18:50:17 +02:00
|
|
|
Dial( QQuickItem* parent = nullptr );
|
2018-04-05 11:23:38 +02:00
|
|
|
|
2020-12-18 16:32:54 +01:00
|
|
|
QVector< QString > tickLabels() const;
|
|
|
|
void setTickLabels( const QVector< QString >& );
|
2018-04-05 11:23:52 +02:00
|
|
|
|
2018-08-03 08:15:28 +02:00
|
|
|
private:
|
2020-12-18 16:32:54 +01:00
|
|
|
QVector< QString > m_tickLabels;
|
2018-04-05 11:23:38 +02:00
|
|
|
};
|