summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* Update dependencies on 'dev' in qt/qtsensorsQt Submodule Update Bot2021-05-191-2/+2
| | | | | Change-Id: I6e7158f9682c9b9e44e4743db446c62f02b861e6 Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* QtSensors: Fix backend loading in examples on static buildsTamás Martinec2021-05-192-0/+4
| | | | | | | | | | Added explicit sensors entry and plugin entries to the .pro files as the sensor plugins won't be linked on static builds (for example on iOS) otherwise. Task-number: QTBUG-92508 Change-Id: I6d7364ee2094be5a79bddd12ba041a69057dc070 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Rename subclass static variable which shadowed baseclass methodJuha Vuolle2021-05-1960-165/+170
| | | | | | | | | | | The 'type' static variable shadowed the 'QSensors::type()' method of the baseclass. While this is easy to workaround it is better to remove such naming clash. Task-number: QTBUG-60246 Change-Id: Id0ddae978377ea4d4d0202a572c554c2541f9364 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Remove compiler warningsJuha Vuolle2021-05-181-3/+3
| | | | | | Task-number: QTBUG-92505 Change-Id: Iebfda5ae88594826d1253b725e1e15dd2bde7435 Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Android rotation sensor value and datarate fixJuha Vuolle2021-05-172-7/+37
| | | | | | | | | | | | | | There was a breaking change in Android rotation sensor handling in Qt 5.12.4 when migrating to NDK usage: -The unit conversion logic was not transferred as part of the migration. This task reintroduces the unit conversion part. -The datarate interval was misinterpreted as usec, whereas it is Hz Fixes: QTBUG-77423 Change-Id: Ibe51b3dea393e1cbe1502b5611c07f32024daf57 Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io> (cherry picked from commit edf82b1d6dc7572da93bbdcd5b4ce46fa1dab2ad) Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Update dependencies on 'dev' in qt/qtsensorsQt Submodule Update Bot2021-05-131-2/+2
| | | | | Change-Id: I67fba299d308b6876804bbfde69a4e742b8c07e9 Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Update dependencies on 'dev' in qt/qtsensorsQt Submodule Update Bot2021-05-121-2/+2
| | | | | Change-Id: I5e11e9c367bd9ec00a6e073c2d3a04712e744c6b Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* QtSensors: Fix the sensorgestures example on iOSTamás Martinec2021-05-111-0/+2
| | | | | | | | | Added explicit plugin entry to the .pro file as the gesture plugins won't be linked on iOS otherwise. Task-number: QTBUG-92508 Change-Id: I6d84a4ea706bd7f67d51c247588d3cc80e99ac98 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Update dependencies on 'dev' in qt/qtsensorsQt Submodule Update Bot2021-05-101-2/+2
| | | | | Change-Id: I5471776b16d62425f6afee237ce1c6193130dfbb Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Android: use new public jni apisAssam Boudjelthia2021-05-102-21/+28
| | | | | | | | | Replace use of QJNIObjectPrivate with QJniObject. Get context() and sdkVersion() from QNativeInterface::QAndroidApplication. Fixes: QTBUG-92550 Change-Id: I625b2269ef253e1a1f76f82edebac236de184c2c Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Update dependencies on 'dev' in qt/qtsensorsQt Submodule Update Bot2021-05-071-2/+2
| | | | | Change-Id: Ic090e6f91e45c98bf56f9d0e204dd372f5916fd7 Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Update dependencies on 'dev' in qt/qtsensorsQt Submodule Update Bot2021-05-061-2/+2
| | | | | Change-Id: Ie77783ee69a52e8a688a3c9279f8414c5141bc46 Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Update dependencies on 'dev' in qt/qtsensorsQt Submodule Update Bot2021-05-061-2/+2
| | | | | Change-Id: Ief1105e9e84e9efe021012c460e1bda28ac7d7df Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Update dependencies on 'dev' in qt/qtsensorsQt Submodule Update Bot2021-05-051-1/+1
| | | | | Change-Id: I2b89b5656ef9c454362a84a5faf878d097e6a88c Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Android: Fix build error issue in examplesJukka Passi2021-05-052-1/+3
| | | | | | | | | | | Added android branch to qtsensors example to get correct library architecture for the build Fixes: QTBUG-56322 Pick-to: 5.15 Change-Id: I6d15a423efdf232d7f187b39cd81606bb64f9a00 Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io> Reviewed-by: Rami Potinkara <rami.potinkara@qt.io>
* Update dependencies on 'dev' in qt/qtsensorsQt Submodule Update Bot2021-05-051-2/+2
| | | | | Change-Id: Id017d3505276acab33a48cf2bf74996cd8fd469a Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Update dependencies on 'dev' in qt/qtsensorsQt Submodule Update Bot2021-05-041-2/+2
| | | | | Change-Id: I24d57b825706df6a9b1d0d7c923ecd879b046f83 Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Update dependencies on 'dev' in qt/qtsensorsQt Submodule Update Bot2021-05-041-2/+2
| | | | | Change-Id: Ic78005b95f397be351a486f4d6417e6a0a22c59b Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Update dependencies on 'dev' in qt/qtsensorsQt Submodule Update Bot2021-05-041-2/+2
| | | | | Change-Id: Ib5e9e44c2155135b806ae804a666b67d2561fa1e Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Update dependencies on 'dev' in qt/qtsensorsQt Submodule Update Bot2021-05-031-1/+1
| | | | | Change-Id: I08a9b981c145de4a6a4df2b5ceb8fd6478426371 Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Update dependencies on 'dev' in qt/qtsensorsQt Submodule Update Bot2021-05-011-2/+2
| | | | | Change-Id: Ie7791c063744b3104601b5d3ed3acac0dc3ddd46 Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>