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
|
|
|
*****************************************************************************/
|
|
|
|
|
2021-08-04 08:11:12 +00:00
|
|
|
#pragma once
|
2018-04-05 09:23:38 +00:00
|
|
|
|
2020-07-25 11:05:19 +00:00
|
|
|
#include <QskBoundedValueInput.h>
|
2018-04-05 09:23:38 +00:00
|
|
|
|
2022-07-14 16:50:17 +00:00
|
|
|
class Dial : public QskBoundedValueInput
|
2018-04-05 09:23:38 +00:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
2018-08-03 06:15:28 +00:00
|
|
|
public:
|
2020-12-18 15:32:54 +00:00
|
|
|
QSK_SUBCONTROLS( Panel, TickLabels, Knob, Needle )
|
2018-04-05 09:23:38 +00:00
|
|
|
|
2022-07-14 16:50:17 +00:00
|
|
|
Dial( QQuickItem* parent = nullptr );
|
2018-04-05 09:23:38 +00:00
|
|
|
|
2020-12-18 15:32:54 +00:00
|
|
|
QVector< QString > tickLabels() const;
|
|
|
|
void setTickLabels( const QVector< QString >& );
|
2018-04-05 09:23:52 +00:00
|
|
|
|
2018-08-03 06:15:28 +00:00
|
|
|
private:
|
2020-12-18 15:32:54 +00:00
|
|
|
QVector< QString > m_tickLabels;
|
2018-04-05 09:23:38 +00:00
|
|
|
};
|