diff options
Diffstat (limited to 'tests/auto/qml/qqmllistreference')
-rw-r--r-- | tests/auto/qml/qqmllistreference/tst_qqmllistreference.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/tests/auto/qml/qqmllistreference/tst_qqmllistreference.cpp b/tests/auto/qml/qqmllistreference/tst_qqmllistreference.cpp index e25d555d61..665fcdc9dc 100644 --- a/tests/auto/qml/qqmllistreference/tst_qqmllistreference.cpp +++ b/tests/auto/qml/qqmllistreference/tst_qqmllistreference.cpp @@ -92,7 +92,6 @@ public: SyntheticClearAndReplace, SyntheticRemoveLast, SyntheticRemoveLastAndReplace, - AutomaticReference, AutomaticPointer }; @@ -115,7 +114,7 @@ public: return reinterpret_cast<QList<TestType *> *>(p->data)->removeLast(); } - TestType(Mode mode = AutomaticReference) + TestType(Mode mode = AutomaticPointer) { switch (mode) { case SyntheticClear: @@ -138,9 +137,6 @@ public: property = QQmlListProperty<TestType>(this, &data, append, count, at, clear, nullptr, nullptr); break; - case AutomaticReference: - property = QQmlListProperty<TestType>(this, data); - break; case AutomaticPointer: property = QQmlListProperty<TestType>(this, &data); break; @@ -159,7 +155,6 @@ Q_DECLARE_METATYPE(TestType::Mode) void tst_qqmllistreference::modeData() { QTest::addColumn<TestType::Mode>("mode"); - QTest::addRow("AutomaticReference") << TestType::AutomaticReference; QTest::addRow("AutomaticPointer") << TestType::AutomaticPointer; QTest::addRow("SyntheticClear") << TestType::SyntheticClear; QTest::addRow("SyntheticReplace") << TestType::SyntheticReplace; |