summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* 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>
* Remove obsolete 'legacy' test case (cleanup)Juha Vuolle2021-06-022-282/+0
| | | | | | | | | | The term 'legacy' here refers to QtMobility sensors 1.2 implementation, and the test case removed by this commit has been disabled in 2012 when 1.3 was released. Task-number: QTBUG-92513 Change-Id: If6a2e72c9d7c97f0bf93a8acbc3521cceffab571 Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Update dependencies on 'dev' in qt/qtsensorsQt Submodule Update Bot2021-06-011-2/+2
| | | | | Change-Id: I64ff6241a6b369cb0d07bce6465f5408c64d3c6e Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Update dependencies on 'dev' in qt/qtsensorsQt Submodule Update Bot2021-06-011-2/+2
| | | | | Change-Id: I8b1365135d9d38124acaf2cb1a920cff24e2abd2 Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Update dependencies on 'dev' in qt/qtsensorsQt Submodule Update Bot2021-05-311-2/+2
| | | | | Change-Id: Ied3b54ff21893990e63bcec0de055d32eed230e0 Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Update dependencies on 'dev' in qt/qtsensorsQt Submodule Update Bot2021-05-281-2/+2
| | | | | Change-Id: Ib3f1cf97750038b09c3c1133403f30a7215e3d72 Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Update dependencies on 'dev' in qt/qtsensorsQt Submodule Update Bot2021-05-271-2/+2
| | | | | Change-Id: I98a8510fe4b7b3c3c572b63101b4f97756e60dea Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Update dependencies on 'dev' in qt/qtsensorsQt Submodule Update Bot2021-05-261-2/+2
| | | | | Change-Id: Ic9fdfdadee9f119b999f2abc4e8cf82ac5743523 Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Split the Sensors QML plugin into a library and a pluginJuha Vuolle2021-05-2657-980/+646
| | | | | | | | | | | | | | | 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>
* Add missed override markers to the SensorTag pluginAlexey Edelev2021-05-251-2/+2
| | | | | Change-Id: Iaf6367a8605a244762422da2d35011598c05f144 Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Update dependencies on 'dev' in qt/qtsensorsQt Submodule Update Bot2021-05-241-2/+2
| | | | | Change-Id: I6f6174de1592a524de4c7475de616016d6759f68 Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Update dependencies on 'dev' in qt/qtsensorsQt Submodule Update Bot2021-05-241-2/+2
| | | | | Change-Id: I01092b5b0debdb026ef479f5c6ebf48990fb126f Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Bump versionJani Heikkinen2021-05-241-1/+1
| | | | Change-Id: Iad1ccf53a4cd96b71653dc04da26def458470c13
* Update dependencies on 'dev' in qt/qtsensorsQt Submodule Update Bot2021-05-231-2/+2
| | | | | Change-Id: Ib8fb6109cbf7cbfa4b58b87605c92a5a8ac1318d Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Update dependencies on 'dev' in qt/qtsensorsQt Submodule Update Bot2021-05-201-2/+2
| | | | | Change-Id: I5afbead453c719dfe4cca76fead8301af8115305 Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Update dependencies on 'dev' in qt/qtsensorsQt Submodule Update Bot2021-05-201-2/+2
| | | | | Change-Id: I7ddacd1ac575f26f289737cda3b378020893555c Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>