summaryrefslogtreecommitdiffstats
path: root/src/sensorsquick/qmlaccelerometer.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Remove unused QmlSensorReading constructor parameterJuha Vuolle2021-06-221-2/+1
| | | | | | | | | | | | The ctor parameter is not used. For clarity it should be mentioned that the memory management of the created 'reading' is done by explicitly parenting the 'reading' in the qmlsensor baseclass. Task-number: QTBUG-92505 Change-Id: I4e50bcafa7789f7400364078302339915473a3b1 Reviewed-by: Alex Blasche <alexander.blasche@qt.io> (cherry picked from commit 89905b1ea1c81013d21093c95f6fee2665fdaa69) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Add binding support for sensor readingsJuha Vuolle2021-06-211-15/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | Many of the sensors' QML "reading" value properties change with high frequency. This makes them candidates to benefit from the more performant bindable support. This commit adds the bindable support for QML sensor 'reading' classes: pressure, gyroscope, tap, compass, proximity, orientation, distance, magnetometer, lid reading, tilt, rotation, humidity, holster, ambient temperature, light sensor, altimeter, IR proximity, accelerometer, ambient light, and sensor reading baseclass (timestamp common to all) In addition to the 'reading' classes, the commit adds bindable support for QmlSensor::reading, as it's change signal is emitted with high frequency, on every sensor reading change. Task-number: QTBUG-92513 Task-number: QTBUG-92503 Task-number: QTBUG-92505 Change-Id: I413ddd8a758142b9b93596e55b3bc8c3c2c98252 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Alex Blasche <alexander.blasche@qt.io> Reviewed-by: Ivan Solovev <ivan.solovev@qt.io> (cherry picked from commit c255fe62f86598f48bd7e69e449aa95aa016f4fb) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Split the Sensors QML plugin into a library and a pluginJuha Vuolle2021-05-261-0/+188
The main changes: - Introduction of new SensorsQuick library with private exports - The original QML plugin loads this new library and does little else - Renamed original 'sensors' plugin as 'declarative_sensors' to provide an idea what it relates to - Renamed library headers as private "_p.h" and added "We mean it" - Changed qmlRegister* calls to QML_ELEMENT macros - Removed files that are generated in Qt6 (qmldir, plugins.qmltypes) Task-number: QTBUG-92530 Change-Id: I18f849adabcc79ac47e67305f78aefeee82801bc Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>