summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Update dependencies on '6.2' in qt/qtsensorsv6.2.0-beta1Qt Submodule Update Bot2021-06-301-2/+2
| | | | | Change-Id: I2c21bfb27fe2d1fd8712467298ce731b7be1bb39 Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Update dependencies on '6.2' in qt/qtsensorsQt Submodule Update Bot2021-06-291-2/+2
| | | | | Change-Id: Ibdfb7faf9441aabfeaa012acade524ab62f7bfb9 Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Remove obsolete gesture emulator documentationJuha Vuolle2021-06-292-75/+0
| | | | | | | | Task-number: QTBUG-92512 Change-Id: I698e967c106c79f410b2befc7085012b3f999056 Reviewed-by: Lorn Potter <lorn.potter@gmail.com> (cherry picked from commit 2e18032f1f4228d2ed8270dac29efabcc9ca1ffc) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Remove TI Sensor tag supportJuha Vuolle2021-06-2928-2232/+5
| | | | | | | | | | | | | | | | | The TI Sensor tag support is specific to a firmware version, and while it could be updated on an ongoing basis, there has not been expressed use for it beyond its initial use cases. As with Qt sensors in general, sensors and platforms can be later reintroduced without compatibility issues should such needs emerge. [ChangeLog][TI Sensor tag] Remove support Task-number: QTBUG-92512 Change-Id: I70c8514701787cc1d21195546a48b38d8009434f Reviewed-by: Lorn Potter <lorn.potter@gmail.com> (cherry picked from commit acd80292bb9a62105204f012cf70d56d8c4b9ada) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Update QtSensors platform- and sensor support in Qt6Juha Vuolle2021-06-2930-1754/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | This commit removes the sensor frontend implementations of QAltimeter, QDistanceSensor, QHolsterSensor and their QML counterparts. Since the BlackBerry backend removal in 2015 these sensors have not had a backend support. Sensorfw is not currently supported by Qt6, and as the sole backend provider the following sensors have been removed from documentation until such support is reintroduced: QIRProximitySensor, QLidSensor, QTapSensor and their QML counterparts. [ChangeLog][QAltimeter] Remove support [ChangeLog][QDistanceSensor] Remove support [ChangeLog][QHolsterSensor] Remove support [ChangeLog][QIRProximitySensor] Disable documentation [ChangeLog][QLidSensor] Disable documentation [ChangeLog][QTapSensor] Disable documentation Task-number: QTBUG-92512 Change-Id: Ic89e91bf65e7a70a2faf0fb566bb24f2f1005a4e Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Alex Blasche <alexander.blasche@qt.io> (cherry picked from commit d40c4d0b3766043cf4fbaa87acd76b11bf733369) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* QtSensors Qt6 documentation base updateJuha Vuolle2021-06-298-182/+101
| | | | | | | | | | | | | | | | | The QtSensors module shall be released in 6.2 for the first time in Qt 6 series. This commit updates the basic things of the documentation accordingly. Documentation for sensor support, platform support, and examples shall be updated with followup commits. [ChangeLog][sensorfw] sensorfw removed from docs for now Task-number: QTBUG-92512 Change-Id: I7c5e447766109bf9da8ab3cc56fe22ec42dbd875 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Lorn Potter <lorn.potter@gmail.com> (cherry picked from commit 175a5ab34240c723ad2c2a2d60ad38a01ed6d218) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Update dependencies on '6.2' in qt/qtsensorsQt Submodule Update Bot2021-06-261-2/+2
| | | | | Change-Id: Ie5f8208971370295ccedf64380b2a91dea41423d Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Update dependencies on '6.2' in qt/qtsensorsQt Submodule Update Bot2021-06-251-2/+2
| | | | | Change-Id: I2ad0632098dc51861061f32e179a2d43304db824 Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Update dependencies on '6.2' in qt/qtsensorsQt Submodule Update Bot2021-06-241-2/+2
| | | | | Change-Id: I47856a54fb9adb2f2ce3d2c167f0edc204dfe3a8 Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Update dependencies on '6.2' in qt/qtsensorsQt Submodule Update Bot2021-06-231-2/+2
| | | | | Change-Id: Id2d435f08111fbd6ae30902af7cf7e119061ace6 Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Remove unused QmlSensorReading constructor parameterJuha Vuolle2021-06-2222-52/+23
| | | | | | | | | | | | 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>
* Remove unused '_update()' function (code cleanup)Juha Vuolle2021-06-224-12/+0
| | | | | | | | Task-number: QTBUG-92505 Change-Id: I808065376616ab87af058b2fc5012fc691514589 Reviewed-by: Alex Blasche <alexander.blasche@qt.io> (cherry picked from commit 8ca52678587e2c7e7bc45bf205a734aad72e3008) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Name variable more descriptivelyJuha Vuolle2021-06-221-9/+9
| | | | | | | | Task-number: QTBUG-92513 Change-Id: Ief063423985c9ad4d0209b0b9dda25d77e8fb30b Reviewed-by: Alex Blasche <alexander.blasche@qt.io> (cherry picked from commit d931b2367c1a0d827a0e7bd51a5c3f08f9a55ba7) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix crash in manual test (sensor explorer)Juha Vuolle2021-06-221-0/+2
| | | | | | | | | | | In some cases the reading may be a nullptr and the test needs to prepare for it. Task-number: QTBUG-92513 Change-Id: I0186ffe9b277c9b978a30b4001c31df350a5d7a8 Reviewed-by: Alex Blasche <alexander.blasche@qt.io> (cherry picked from commit b34c7bcc40b07e6c88593d49196f91f1075f9bb2) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Update dependencies on '6.2' in qt/qtsensorsQt Submodule Update Bot2021-06-221-2/+2
| | | | | Change-Id: Icabed0ba03fea6dffe3a61d0434f744d7820dce8 Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Update dependencies on '6.2' in qt/qtsensorsv6.2.0-alpha1Qt Submodule Update Bot2021-06-211-2/+2
| | | | | Change-Id: Ib367c6c21395eca18ef15a9c5c690599b0135899 Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Fix tst_sensorgestures_gestures to pass on AndroidJuha Vuolle2021-06-212-17/+13
| | | | | | | | | | | | | | | The problem was that the testcase did not find the testdata files on Android. On closer inspection it turns out that TESTDATA token in qt_internal_add_test treats ANDROID/IOS and rest of the platforms differently in terms of how test resources are handled. This commit stores testdata unconditionally as qrc resources. Task-number: QTBUG-92513 Task-number: QTBUG-73618 Change-Id: I0cfe878661dd2c55fa63abc1f95534a8041aa34d Reviewed-by: Lorn Potter <lorn.potter@gmail.com> (cherry picked from commit 07155b638ec9e6383e05f054c71da24a199bf11e) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Add binding support for sensor readingsJuha Vuolle2021-06-2146-312/+608
| | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* Update dependencies on '6.2' in qt/qtsensorsQt Submodule Update Bot2021-06-211-2/+2
| | | | | Change-Id: I8bf0db362984f01f0e8e45b014811df75a8c98a3 Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Update dependencies on '6.2' in qt/qtsensorsQt Submodule Update Bot2021-06-181-2/+2
| | | | | Change-Id: I3d92b0879d30a233f29f40c529c470a4bbb7bc4e Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Update dependencies on '6.2' in qt/qtsensorsQt Submodule Update Bot2021-06-171-1/+1
| | | | | Change-Id: I32dc560ce6ee5a60bdc9332b9e675903bba28948 Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Update dependencies on '6.2' in qt/qtsensorsQt Submodule Update Bot2021-06-171-2/+2
| | | | | Change-Id: I5988cd7fb0ec2665a91b921f50ffa693d390da85 Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Update dependencies on '6.2' in qt/qtsensorsQt Submodule Update Bot2021-06-161-2/+2
| | | | | Change-Id: Ie255af5c45d0d98d459cce44536c00208f2c2fbb Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Correct RotationSensor::hasZ type documentation to 'bool'Juha Vuolle2021-06-161-1/+1
| | | | | | | | Task-number: QTBUG-92512 Change-Id: I72137fa5e1e81b183c058aa600f7fb3204fe1c6c Reviewed-by: Paul Wicking <paul.wicking@qt.io> (cherry picked from commit 491a3f9980b964c49ecd2301548f6db3cd96f127) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Update dependencies on '6.2' in qt/qtsensorsQt Submodule Update Bot2021-06-161-2/+2
| | | | | Change-Id: Ia2d2858f54b103e63de12806dbbab972e268ca60 Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Update dependencies on '6.2' in qt/qtsensorsQt Submodule Update Bot2021-06-161-2/+2
| | | | | Change-Id: I516cf73b2a25396dc155703d2572cab7afed5982 Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Update dependencies on '6.2' in qt/qtsensorsQt Submodule Update Bot2021-06-151-2/+2
| | | | | Change-Id: Ic18c5c4b474709d62fdf783377fb7608673ddcf3 Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Sensor identifier autotest and fix related findingsJuha Vuolle2021-06-154-31/+106
| | | | | | | | | | | | | | | | | 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>
* Make sensor possible to indicate it is no longer busyJuha Vuolle2021-06-1511-10/+85
| | | | | | | | | | | | | | | | The current implementation allowed sensor backend to only indicate that it is busy, but not to tell when it was freed again. This commit allows sensor backend to indicate also that it's busy state has cleared. It is up to the sensor implementation to decide if it makes sense / is possible to do that or not. Task-number: QTBUG-92513 Task-number: QTBUG-92505 Change-Id: Ied4857850e81346031fd83aa347d9955081118e8 Reviewed-by: Alex Blasche <alexander.blasche@qt.io> (cherry picked from commit f8445fdcbf75e455443304bc290c48c37961e9f1) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Increase QtSensors QML autotest coverageJuha Vuolle2021-06-1523-93/+413
| | | | | | | | | | | | | | | | | This commit introduces QML based auto tests in order to increase the autotest coverage. Additionally the QML sensor activity handling is fixed which caused the newly added tests to fail. There are also long-standing bugs about these activeChanged() double emits. Task-number: QTBUG-92514 Task-number: QTBUG-70770 Task-number: QTBUG-80755 Change-Id: I98f036f665a056c441efa00aab76ec47bc628057 Reviewed-by: Alex Blasche <alexander.blasche@qt.io> (cherry picked from commit 54b3ca67ad7230a21d76c581dd4287401acb230f) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Update dependencies on '6.2' in qt/qtsensorsDaniel Smith2021-06-111-2/+2
| | | | | Change-Id: I9c8181f4bc5c5b817a96aa35fc28ec0e5e1e5452 Reviewed-by: Daniel Smith <Daniel.Smith@qt.io>
* Update dependencies on '6.2' in qt/qtsensorsDaniel Smith2021-06-101-1/+1
| | | | | Change-Id: I33491dc7a30979693b271a29e46b511c4d0813a9 Reviewed-by: Daniel Smith <Daniel.Smith@qt.io>
* Update dependencies on '6.2' in qt/qtsensorsQt Submodule Update Bot2021-06-101-2/+2
| | | | | Change-Id: Iec6c7686ab34d6b40c1bd4574c42cca6b6861e93 Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Update dependencies on '6.2' in qt/qtsensorsQt Submodule Update Bot2021-06-091-2/+2
| | | | | Change-Id: Ibf64c68a4623a140dcdc14e274a5f422179f914d Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Replace Q_FOREACH with ranged for loopsJuha Vuolle2021-06-0811-47/+34
| | | | | | Task-number: QTBUG-92505 Change-Id: I1e8334473c883f76285736f6a26138ea882f5351 Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Update dependencies on 'dev' in qt/qtsensorsQt Submodule Update Bot2021-06-071-2/+2
| | | | | Change-Id: I89189e29034bd14985f15b038eae14ce0d106aac Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Update dependencies on 'dev' in qt/qtsensorsQt Submodule Update Bot2021-06-051-2/+2
| | | | | Change-Id: I517ed81b1dfd821297d8589878887d606ab492d0 Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Update dependencies on 'dev' in qt/qtsensorsQt Submodule Update Bot2021-06-051-2/+2
| | | | | Change-Id: Ibb78aa461d9fa005f18bcf66bf47f832025e5bfa Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Update dependencies on 'dev' in qt/qtsensorsQt Submodule Update Bot2021-06-051-2/+2
| | | | | Change-Id: I7faf43d3ca12b6fb5d941d891535cc87913bbb9d Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Port QtSensors to new QML CMake APIFabian Kosmale2021-06-055-91/+3
| | | | | | Change-Id: I73ad44222b2ecefca4457b5dd1713207dc515223 Reviewed-by: Andrei Golubev <andrei.golubev@qt.io> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* Fix compilation errors on sensortagsJuha Vuolle2021-06-042-8/+8
| | | | | | | | | | Additionally add find_package() for bluetooth to the top CMakeLists.txt Task-number: QTBUG-94209 Task-number: QTBUG-92502 Task-number: QTBUG-92509 Change-Id: Ied1730e6c3758b2734d8a25d1dcbc43236b997d2 Reviewed-by: Andreas Buhr <andreas.buhr@qt.io>
* Update dependencies on 'dev' in qt/qtsensorsQt Submodule Update Bot2021-06-041-2/+2
| | | | | Change-Id: Ic4821a35732a948ce6a17d52975a24f56e927023 Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Add Co(Un)Initialize call to windows backendJuha Vuolle2021-06-041-0/+10
| | | | | | | | | The sensors are accessed through the COM library which requires that the initialization routines are done. Task-number: QTBUG-92510 Change-Id: Idf65b0076432bebbab0de9f24b5e9711d471d193 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
* Fix tst_qsensor autotestcase to pass on android deviceJuha Vuolle2021-06-032-10/+7
| | | | | | | | | | | | | | | The main issue with running the autotests on an Android device is that the device has real sensors too and the test case is not prepared for that. This commit addresses this by allowing additional available sensors as well as specifying more specifically which sensor IDs to use for testing. Task-number: QTBUG-73617 Task-number: QTBUG-92513 Change-Id: I92180df6f5e8361d39134567616b21a3a51b636c Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Alex Blasche <alexander.blasche@qt.io> Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Remove obsolete 'legacy' QML test case (cleanup)Juha Vuolle2021-06-031-192/+0
| | | | | | | | The case has been superseded years ago Task-number: QTBUG-92513 Change-Id: I7d27083863d57bfa94e49abcceb1be10f7bf5945 Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Update dependencies on 'dev' in qt/qtsensorsQt Submodule Update Bot2021-06-031-2/+2
| | | | | Change-Id: I4195b1f7fabeaa8ce6ec7e76668774e2e5bb5204 Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Replace Q_NULLPTR with nullptrKevin Funk2021-06-0225-28/+28
| | | | | Change-Id: I9885deb29ebcd5db51a00cbcc2f063bfc418e23f Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Doc: Fix documentation issuesTopi Reinio2021-06-022-8/+4
| | | | | | | | | * Add src/sensorsquick to the documentation project * Remove links to UWP and SailFish from the overview page Task-number: QTBUG-91875 Change-Id: I7c7ed24ddc487c48f423d8b4ffa44154d51872d6 Reviewed-by: Paul Wicking <paul.wicking@qt.io>
* Few cleanups and modernizationsJuha Vuolle2021-06-0210-14/+41
| | | | | | | | | | | This commit introduces few source compatible changes: - Change obsoleted Q_ENUMS => Q_ENUM - Mark QSensor::type property as CONSTANT as it cannot change - Add change signal to QSensor::identifier and a testcase for it Task-number: QTBUG-92505 Change-Id: I6e3a652929d15bc5211448be2ae9254ed6d21118 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Fix and simplify sensor_explorer exampleJuha Vuolle2021-06-0221-1303/+487
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit strives to both fix and simplify the application and bring its intended demonstrative purpose more forward, consequently hopefully also making the example easier to understand and maintain. First, the sensor_explorer example used QQC1 functionalities which are no longer available in Qt6. The removed elements were such that the datamodels needed to be redesigned. This commit changes the example to use bit more standard Qt model-view approach. Second, the sensor_explorer application has not worked in years on Android due to missing QML plugin installation. While this could be fixed, in the name of simplicity the example is now a single binary. Third, the explorer allowed editing of sensor values. While this could be a feature of the example, it perhaps deviates from the gist of the example making it more difficult to understand. Thus the editing was not added as part of the example rewrite. It can be added later though. Task-number: QTBUG-92514 Task-number: QTBUG-92505 Task-number: QTBUG-63054 Change-Id: Icd620ea605a87ba74a42cd1309a3c02d05b146ac Reviewed-by: Lorn Potter <lorn.potter@gmail.com>