diff options
Diffstat (limited to 'tests/auto/qml/qmltyperegistrar/tst_qmltyperegistrar.h')
-rw-r--r-- | tests/auto/qml/qmltyperegistrar/tst_qmltyperegistrar.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/auto/qml/qmltyperegistrar/tst_qmltyperegistrar.h b/tests/auto/qml/qmltyperegistrar/tst_qmltyperegistrar.h index c85ae0dae8..d48f61cc10 100644 --- a/tests/auto/qml/qmltyperegistrar/tst_qmltyperegistrar.h +++ b/tests/auto/qml/qmltyperegistrar/tst_qmltyperegistrar.h @@ -93,7 +93,7 @@ class Local : public Foreign { Q_OBJECT QML_ELEMENT - Q_PROPERTY(int someProperty) + Q_PROPERTY(int someProperty MEMBER someProperty BINDABLE bindableSomeProperty) public: enum Flag { Flag1 = 0x1, @@ -104,6 +104,8 @@ public: Q_DECLARE_FLAGS(Flags, Flag) Q_FLAG(Flags) + QBindable<int> bindableSomeProperty() {return QBindable<int>(&someProperty);} + QProperty<int> someProperty; }; @@ -119,7 +121,7 @@ private slots: void qmltypesHasFlags(); void superAndForeignTypes(); void accessSemantics(); - void isQProperty(); + void isBindable(); void restrictToImportVersion(); private: |