aboutsummaryrefslogtreecommitdiffstats
path: root/src/quicktemplates2/qquickspinbox_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/quicktemplates2/qquickspinbox_p.h')
-rw-r--r--src/quicktemplates2/qquickspinbox_p.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/quicktemplates2/qquickspinbox_p.h b/src/quicktemplates2/qquickspinbox_p.h
index 524930a2..f5370331 100644
--- a/src/quicktemplates2/qquickspinbox_p.h
+++ b/src/quicktemplates2/qquickspinbox_p.h
@@ -76,6 +76,8 @@ class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickSpinBox : public QQuickControl
Q_PROPERTY(bool inputMethodComposing READ isInputMethodComposing NOTIFY inputMethodComposingChanged FINAL REVISION 2)
// 2.3 (Qt 5.10)
Q_PROPERTY(bool wrap READ wrap WRITE setWrap NOTIFY wrapChanged FINAL REVISION 3)
+ // 2.4 (Qt 5.11)
+ Q_PROPERTY(QString displayText READ displayText NOTIFY displayTextChanged FINAL REVISION 4)
public:
explicit QQuickSpinBox(QQuickItem *parent = nullptr);
@@ -117,6 +119,9 @@ public:
bool wrap() const;
void setWrap(bool wrap);
+ // 2.4 (Qt 5.11)
+ QString displayText() const;
+
public Q_SLOTS:
void increase();
void decrease();
@@ -136,6 +141,8 @@ Q_SIGNALS:
Q_REVISION(2) void inputMethodComposingChanged();
// 2.3 (Qt 5.10)
Q_REVISION(3) void wrapChanged();
+ // 2.4 (Qt 5.11)
+ Q_REVISION(4) void displayTextChanged();
protected:
void focusInEvent(QFocusEvent *event) override;
@@ -153,6 +160,7 @@ protected:
void componentComplete() override;
void itemChange(ItemChange change, const ItemChangeData &value) override;
void contentItemChange(QQuickItem *newItem, QQuickItem *oldItem) override;
+ void localeChange(const QLocale &newLocale, const QLocale &oldLocale) override;
QFont defaultFont() const override;
QPalette defaultPalette() const override;