summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--examples/sensors/sensor_explorer/import/explorer.cpp2
-rw-r--r--examples/sensors/sensor_explorer/import/sensoritem.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/sensors/sensor_explorer/import/explorer.cpp b/examples/sensors/sensor_explorer/import/explorer.cpp
index 4773ee18..0665a98f 100644
--- a/examples/sensors/sensor_explorer/import/explorer.cpp
+++ b/examples/sensors/sensor_explorer/import/explorer.cpp
@@ -117,7 +117,7 @@ void QSensorExplorer::loadSensors()
*/
QQmlListProperty<QSensorItem> QSensorExplorer::availableSensors()
{
- return QQmlListProperty<QSensorItem>(this,_availableSensors);
+ return QQmlListProperty<QSensorItem>(this, &_availableSensors);
}
/*
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<QPropertyInfo> QSensorItem::properties()
_properties.clear();
_properties.append(_sensorProperties);
_properties.append(_readerProperties);
- return QQmlListProperty<QPropertyInfo> (this, _properties);
+ return QQmlListProperty<QPropertyInfo> (this, &_properties);
}
QT_END_NAMESPACE