aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmllistreference
diff options
context:
space:
mode:
authorFabian Kosmale <fabian.kosmale@qt.io>2020-08-25 16:18:55 +0200
committerFabian Kosmale <fabian.kosmale@qt.io>2020-08-31 12:42:27 +0200
commit22234c8a469be7c831aab51c9705e06f8624d24e (patch)
treeb1dc266af3843eefdb6ed2a6719f601dd9dc51cf /tests/auto/qml/qqmllistreference
parentf0cf6483ec73291fcef424951b69511388956acb (diff)
Remove deprecated QQmlListProperty constructor
[ChangeLog][QML][QQmlListProperty] Removed deprecated QQmlListProperty constructor taking a reference. Use the overload taking a pointer instead. Change-Id: I8942026d1bb1c88065659d96d648a4b256d7d427 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'tests/auto/qml/qqmllistreference')
-rw-r--r--tests/auto/qml/qqmllistreference/tst_qqmllistreference.cpp7
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;