summaryrefslogtreecommitdiffstats
path: root/src/imports/sensors/sensors.pro
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2019-12-02 15:00:16 +0100
committerUlf Hermann <ulf.hermann@qt.io>2019-12-03 10:39:32 +0100
commitf6b550ea5eae80124576766fe1a9609ae5aba1e3 (patch)
treeaa77775c9fd891cda2dda4ca26a87be20a4b6225 /src/imports/sensors/sensors.pro
parent7aef9656318bb5f827be997a526e9effcfb62502 (diff)
Fix QML API for sensor ranges
Previously the QQmlListProperties were constructed on stack-allocated lists, which immediately turned into dangling pointers on return. Also, none of the sensor ranges was ever deleted. Keep the sensor ranges in persistent lists in the private object, parent them to the main QmlSensor object, and add some tests for them. Fixes: QTBUG-79224 Change-Id: Ie61d0aaeaaaf998c1d1f46f60c81848ae48659d6 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Alex Blasche <alexander.blasche@qt.io> Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'src/imports/sensors/sensors.pro')
-rw-r--r--src/imports/sensors/sensors.pro2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/imports/sensors/sensors.pro b/src/imports/sensors/sensors.pro
index d6279168..7d15ec9f 100644
--- a/src/imports/sensors/sensors.pro
+++ b/src/imports/sensors/sensors.pro
@@ -1,4 +1,4 @@
-QT += qml sensors sensors-private
+QT += core-private qml sensors sensors-private
HEADERS += \
qmlsensor.h \