aboutsummaryrefslogtreecommitdiffstats
path: root/tests/benchmarks
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/benchmarks
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/benchmarks')
-rw-r--r--tests/benchmarks/qml/binding/testtypes.h2
-rw-r--r--tests/benchmarks/qml/holistic/testtypes.h2
-rw-r--r--tests/benchmarks/qml/qqmlcomponent/testtypes.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/benchmarks/qml/binding/testtypes.h b/tests/benchmarks/qml/binding/testtypes.h
index 7e95c7ef67..4713a63483 100644
--- a/tests/benchmarks/qml/binding/testtypes.h
+++ b/tests/benchmarks/qml/binding/testtypes.h
@@ -48,7 +48,7 @@ public:
int value() const { return m_value; }
void setValue(int v) { m_value = v; emit valueChanged(); }
- QQmlListProperty<QObject> data() { return QQmlListProperty<QObject>(this, m_data); }
+ QQmlListProperty<QObject> data() { return QQmlListProperty<QObject>(this, &m_data); }
MyQmlObject *object() const { return m_object; }
void setObject(MyQmlObject *o) { m_object = o; emit objectChanged(); }
diff --git a/tests/benchmarks/qml/holistic/testtypes.h b/tests/benchmarks/qml/holistic/testtypes.h
index 9d187f35ff..3cf0664ef2 100644
--- a/tests/benchmarks/qml/holistic/testtypes.h
+++ b/tests/benchmarks/qml/holistic/testtypes.h
@@ -109,7 +109,7 @@ public:
emit objectChanged();
}
- QQmlListProperty<QObject> objectListProperty() { return QQmlListProperty<QObject>(this, m_objectQList); }
+ QQmlListProperty<QObject> objectListProperty() { return QQmlListProperty<QObject>(this, &m_objectQList); }
bool methodCalled() const { return m_methodCalled; }
bool methodIntCalled() const { return m_methodIntCalled; }
diff --git a/tests/benchmarks/qml/qqmlcomponent/testtypes.h b/tests/benchmarks/qml/qqmlcomponent/testtypes.h
index 7e95c7ef67..4713a63483 100644
--- a/tests/benchmarks/qml/qqmlcomponent/testtypes.h
+++ b/tests/benchmarks/qml/qqmlcomponent/testtypes.h
@@ -48,7 +48,7 @@ public:
int value() const { return m_value; }
void setValue(int v) { m_value = v; emit valueChanged(); }
- QQmlListProperty<QObject> data() { return QQmlListProperty<QObject>(this, m_data); }
+ QQmlListProperty<QObject> data() { return QQmlListProperty<QObject>(this, &m_data); }
MyQmlObject *object() const { return m_object; }
void setObject(MyQmlObject *o) { m_object = o; emit objectChanged(); }