summaryrefslogtreecommitdiffstats
path: root/src/sensors/doc
diff options
context:
space:
mode:
authorJuha Vuolle <juha.vuolle@insta.fi>2021-06-10 13:27:19 +0300
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-06-15 09:39:14 +0000
commitce77413488e1da71ef286ec40f5a4afd40cab512 (patch)
tree759a95366e4e4a0667048fef84452eac0b5e13f5 /src/sensors/doc
parent7a82ee1645ef0df9c766031edd20ea99d5ea7b6e (diff)
Sensor identifier autotest and fix related findings
This commit adds a (QML) test for sensor identifier (and activation whose logic is closely related). The related changes: * Change sensor 'identifier' and 'type' properties to QByteArray. This now matches with C++ side that uses QByteArray * Allow changing of 'identifier' after componentComplete. This is now aligned with C++ side. Changing identifier is fine as long as the backend is not connected. Task-number: QTBUG-92513 Task-number: QTBUG-92505 Change-Id: I326d840d5a4efb13a3a6578711563e8054cc9961 Reviewed-by: Alex Blasche <alexander.blasche@qt.io> (cherry picked from commit c3cc1253ba159e6f4c9bd4c92da2b8c300ee94f2) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/sensors/doc')
-rw-r--r--src/sensors/doc/src/qt6-changes.qdoc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sensors/doc/src/qt6-changes.qdoc b/src/sensors/doc/src/qt6-changes.qdoc
index f71cde15..ffde4d19 100644
--- a/src/sensors/doc/src/qt6-changes.qdoc
+++ b/src/sensors/doc/src/qt6-changes.qdoc
@@ -79,4 +79,9 @@
that in most if not all cases the changes are not mandatory. Instead it is up to the
individual sensor backend implementations to decide if the changes are useful.
+ \section2 Sensor::type and and QSensor::type properties marked as constant
+
+ The \c type property cannot change after instantiation and is marked as constant
+ in both C++ and QML.
+
*/