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/qquickspinbox_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/qquickspinbox_p.h')
-rw-r--r-- | src/quicktemplates2/qquickspinbox_p.h | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/src/quicktemplates2/qquickspinbox_p.h b/src/quicktemplates2/qquickspinbox_p.h index 13ba89a9..26c1dd40 100644 --- a/src/quicktemplates2/qquickspinbox_p.h +++ b/src/quicktemplates2/qquickspinbox_p.h @@ -71,6 +71,7 @@ class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickSpinBox : public QQuickControl Q_PROPERTY(QJSValue valueFromText READ valueFromText WRITE setValueFromText NOTIFY valueFromTextChanged FINAL) Q_PROPERTY(QQuickSpinButton *up READ up CONSTANT FINAL) Q_PROPERTY(QQuickSpinButton *down READ down CONSTANT FINAL) + // 2.2 (Qt 5.9) Q_PROPERTY(Qt::InputMethodHints inputMethodHints READ inputMethodHints WRITE setInputMethodHints NOTIFY inputMethodHintsChanged FINAL REVISION 2) Q_PROPERTY(bool inputMethodComposing READ isInputMethodComposing NOTIFY inputMethodComposingChanged FINAL REVISION 2) Q_PROPERTY(bool wrap READ wrap WRITE setWrap NOTIFY wrapChanged FINAL REVISION 3) @@ -105,6 +106,7 @@ public: QQuickSpinButton *up() const; QQuickSpinButton *down() const; + // 2.2 (Qt 5.9) Qt::InputMethodHints inputMethodHints() const; void setInputMethodHints(Qt::InputMethodHints hints); @@ -126,6 +128,7 @@ Q_SIGNALS: void validatorChanged(); void textFromValueChanged(); void valueFromTextChanged(); + // 2.2 (Qt 5.9) Q_REVISION(2) void valueModified(); Q_REVISION(2) void inputMethodHintsChanged(); Q_REVISION(2) void inputMethodComposingChanged(); @@ -164,8 +167,9 @@ class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickSpinButton : public QObject { Q_OBJECT Q_PROPERTY(bool pressed READ isPressed WRITE setPressed NOTIFY pressedChanged FINAL) - Q_PROPERTY(bool hovered READ isHovered WRITE setHovered NOTIFY hoveredChanged FINAL REVISION 1) Q_PROPERTY(QQuickItem *indicator READ indicator WRITE setIndicator NOTIFY indicatorChanged FINAL) + // 2.1 (Qt 5.8) + Q_PROPERTY(bool hovered READ isHovered WRITE setHovered NOTIFY hoveredChanged FINAL REVISION 1) public: explicit QQuickSpinButton(QQuickSpinBox *parent); @@ -173,16 +177,18 @@ public: bool isPressed() const; void setPressed(bool pressed); - bool isHovered() const; - void setHovered(bool hovered); - QQuickItem *indicator() const; void setIndicator(QQuickItem *indicator); + // 2.1 (Qt 5.8) + bool isHovered() const; + void setHovered(bool hovered); + Q_SIGNALS: void pressedChanged(); - Q_REVISION(1) void hoveredChanged(); void indicatorChanged(); + // 2.1 (Qt 5.8) + Q_REVISION(1) void hoveredChanged(); private: Q_DISABLE_COPY(QQuickSpinButton) |