QSkinny 0.8.0
C++/Qt UI toolkit
Loading...
Searching...
No Matches
QskProgressRing.h
1/******************************************************************************
2 * QSkinny - Copyright (C) The authors
3 * SPDX-License-Identifier: BSD-3-Clause
4 *****************************************************************************/
5
6#ifndef QSK_PROGRESS_RING_H
7#define QSK_PROGRESS_RING_H
8
9#include "QskProgressIndicator.h"
10
11class QSK_EXPORT QskProgressRing : public QskProgressIndicator
12{
13 Q_OBJECT
14
15 Q_PROPERTY( Size size READ size
16 WRITE setSize NOTIFY sizeChanged )
17
19
20 public:
21 QSK_SUBCONTROLS( Groove, Fill )
22
23 enum Size
24 {
25 SmallSize = -1,
26 NormalSize = 0,
27 LargeSize = 1
28 };
29 Q_ENUM( Size )
30
31 QskProgressRing( QQuickItem* parent = nullptr );
32 QskProgressRing( qreal min, qreal max, QQuickItem* parent = nullptr );
33 QskProgressRing( const QskIntervalF&, QQuickItem* parent = nullptr );
34
35 ~QskProgressRing() override;
36
38
39 void setSize( Size );
40 Size size() const;
41
42 Q_SIGNALS:
43 void sizeChanged( Size );
44
45 private:
46 class PrivateData;
47 std::unique_ptr< PrivateData > m_data;
48};
49
50#endif
Variation
Some sort of variation.
Definition QskAspect.h:82
virtual QskAspect::Variation effectiveVariation() const