diff options
Diffstat (limited to 'src/controls/Private/qquickrangemodel_p.h')
-rw-r--r-- | src/controls/Private/qquickrangemodel_p.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/controls/Private/qquickrangemodel_p.h b/src/controls/Private/qquickrangemodel_p.h index 0c93bed3..e5796725 100644 --- a/src/controls/Private/qquickrangemodel_p.h +++ b/src/controls/Private/qquickrangemodel_p.h @@ -47,7 +47,7 @@ QT_BEGIN_NAMESPACE class QQuickRangeModel1Private; -class QQuickRangeModel1 : public QObject +class QQuickRangeModel1 : public QObject, public QQmlParserStatus { Q_OBJECT Q_PROPERTY(qreal value READ value WRITE setValue NOTIFY valueChanged USER true) @@ -59,6 +59,8 @@ class QQuickRangeModel1 : public QObject Q_PROPERTY(qreal positionAtMaximum READ positionAtMaximum WRITE setPositionAtMaximum NOTIFY positionAtMaximumChanged) Q_PROPERTY(bool inverted READ inverted WRITE setInverted NOTIFY invertedChanged) + Q_INTERFACES(QQmlParserStatus) + public: QQuickRangeModel1(QObject *parent = 0); virtual ~QQuickRangeModel1(); @@ -90,6 +92,9 @@ public: Q_INVOKABLE qreal valueForPosition(qreal position) const; Q_INVOKABLE qreal positionForValue(qreal value) const; + void classBegin(); + void componentComplete(); + public Q_SLOTS: void toMinimum(); void toMaximum(); |