From 63c972ad9e15b673779147c4c263ed2ac5312a28 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Thu, 13 Feb 2020 11:15:36 +0100 Subject: sensor_explorer: Fix warnings about deprecated QQmlListProperty API MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Pass the list by pointer, fixing: sensors/sensor_explorer/import/explorer.cpp:120:64: warning: ‘QQmlListProperty::QQmlListProperty(QObject*, QList&) [with T = QSensorItem]’ is deprecated sensors/sensor_explorer/import/sensoritem.cpp:328:62: warning: ‘QQmlListProperty::QQmlListProperty(QObject*, QList&) [with T = QPropertyInfo]’ is deprecated: Use constructor taking QList pointer, and gain improved performance [-Wdeprecated-declarations] Change-Id: I0652e806354d3ba43c551e4a3733bafd73f0ddfe Reviewed-by: Fabian Kosmale Reviewed-by: Ulf Hermann --- examples/sensors/sensor_explorer/import/sensoritem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/sensors/sensor_explorer/import/sensoritem.cpp') diff --git a/examples/sensors/sensor_explorer/import/sensoritem.cpp b/examples/sensors/sensor_explorer/import/sensoritem.cpp index 88b5fa7c..f268db3a 100644 --- a/examples/sensors/sensor_explorer/import/sensoritem.cpp +++ b/examples/sensors/sensor_explorer/import/sensoritem.cpp @@ -325,7 +325,7 @@ QQmlListProperty QSensorItem::properties() _properties.clear(); _properties.append(_sensorProperties); _properties.append(_readerProperties); - return QQmlListProperty (this, _properties); + return QQmlListProperty (this, &_properties); } QT_END_NAMESPACE -- cgit v1.2.3