diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2017-11-06 14:02:21 +0100 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2017-11-06 14:02:21 +0100 |
commit | c39b126a77e27296ef82a1634753c775cc5a93fb (patch) | |
tree | 235d9568e21e59b7c70f8be81518c3ea184cf552 /src/quicktemplates2/qquickrangeslider_p.h | |
parent | dc2603562a36241c9beac0c9c4c08bcbfed7b6a2 (diff) | |
parent | 430fe83ecb7106118cbebd735637aee9e9253914 (diff) |
Merge remote-tracking branch 'origin/5.9' into 5.10
Conflicts:
src/quicktemplates2/qquickabstractbutton_p.h
src/quicktemplates2/qquickbuttongroup_p.h
src/quicktemplates2/qquickrangeslider.cpp
src/quicktemplates2/qquickrangeslider_p.h
src/quicktemplates2/qquickswipeview_p.h
src/quicktemplates2/qquicktextarea.cpp
src/quicktemplates2/qquicktextarea_p.h
src/quicktemplates2/qquicktextfield_p.h
Change-Id: I7cba8783b1dd85a4db534222e36572ee05dd01d0
Diffstat (limited to 'src/quicktemplates2/qquickrangeslider_p.h')
-rw-r--r-- | src/quicktemplates2/qquickrangeslider_p.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/quicktemplates2/qquickrangeslider_p.h b/src/quicktemplates2/qquickrangeslider_p.h index 82d61b37..03c0c663 100644 --- a/src/quicktemplates2/qquickrangeslider_p.h +++ b/src/quicktemplates2/qquickrangeslider_p.h @@ -65,9 +65,10 @@ class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickRangeSlider : public QQuickControl Q_PROPERTY(qreal stepSize READ stepSize WRITE setStepSize NOTIFY stepSizeChanged FINAL) Q_PROPERTY(SnapMode snapMode READ snapMode WRITE setSnapMode NOTIFY snapModeChanged FINAL) Q_PROPERTY(Qt::Orientation orientation READ orientation WRITE setOrientation NOTIFY orientationChanged FINAL) + // 2.2 (Qt 5.9) + Q_PROPERTY(bool live READ live WRITE setLive NOTIFY liveChanged FINAL REVISION 2) Q_PROPERTY(bool horizontal READ isHorizontal NOTIFY orientationChanged FINAL REVISION 3) Q_PROPERTY(bool vertical READ isVertical NOTIFY orientationChanged FINAL REVISION 3) - Q_PROPERTY(bool live READ live WRITE setLive NOTIFY liveChanged FINAL REVISION 2) public: explicit QQuickRangeSlider(QQuickItem *parent = nullptr); @@ -97,13 +98,14 @@ public: Qt::Orientation orientation() const; void setOrientation(Qt::Orientation orientation); - bool isHorizontal() const; - bool isVertical() const; + Q_INVOKABLE void setValues(qreal firstValue, qreal secondValue); + // 2.2 (Qt 5.9) bool live() const; void setLive(bool live); - Q_INVOKABLE void setValues(qreal firstValue, qreal secondValue); + bool isHorizontal() const; + bool isVertical() const; Q_SIGNALS: void fromChanged(); @@ -111,6 +113,7 @@ Q_SIGNALS: void stepSizeChanged(); void snapModeChanged(); void orientationChanged(); + // 2.2 (Qt 5.9) Q_REVISION(2) void liveChanged(); protected: @@ -149,6 +152,7 @@ class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickRangeSliderNode : public QObject Q_PROPERTY(qreal visualPosition READ visualPosition NOTIFY visualPositionChanged FINAL) Q_PROPERTY(QQuickItem *handle READ handle WRITE setHandle NOTIFY handleChanged FINAL) Q_PROPERTY(bool pressed READ isPressed WRITE setPressed NOTIFY pressedChanged FINAL) + // 2.1 (Qt 5.8) Q_PROPERTY(bool hovered READ isHovered WRITE setHovered NOTIFY hoveredChanged FINAL REVISION 1) public: @@ -167,6 +171,7 @@ public: bool isPressed() const; void setPressed(bool pressed); + // 2.1 (Qt 5.8) bool isHovered() const; void setHovered(bool hovered); @@ -180,6 +185,7 @@ Q_SIGNALS: void visualPositionChanged(); void handleChanged(); void pressedChanged(); + // 2.1 (Qt 5.8) Q_REVISION(1) void hoveredChanged(); private: |