summaryrefslogtreecommitdiffstats
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* Correct license for example and snippet filesLucie Gérard2024-04-044-4/+4
| | | | | | | | | | | | According to QUIP-18 [1], all example and snippet files should be LicenseRef-Qt-Commercial OR BSD-3-Clause [1]: https://contribute.qt-project.org/quips/18 Pick-to: 6.7 Task-number: QTBUG-121787 Change-Id: Id774a0d7afd03c06bc8598fe929c7021d9b2fb7e Reviewed-by: Kai Köhne <kai.koehne@qt.io>
* Sensors Showcase Example: activate ProximitySensorDennis Oberst2023-11-081-0/+1
| | | | | | | Pick-to: 6.6 6.5 Change-Id: Ifb82febe9173b67caa18ab5748f228729f7d8dd6 Reviewed-by: Rym Bouabid <rym.bouabid@qt.io> Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
* Revamp Sensors Showcase ExampleDennis Oberst2023-10-2021-148/+123
| | | | | | | | | | | | | | Update the style by using 'Material' as default for all platforms except iOS and indicate the availability of sensors by graying out the buttons if not present. Put the example into the 'mobile example' category and update images and icons. Fixes: QTBUG-117369 Pick-to: 6.6 6.5 Change-Id: I2149ab0bc8b784e748a54beaac84152c370af0a2 Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
* Android: remove fileprovider section from sensorsshowcase exampleAssam Boudjelthia2023-06-011-10/+0
| | | | | | | | | | | The manifest file had a mention of a FileProvider but didn't include the xml definiton for it, and this feature is introduced starting in Qt 6.6 (as of this time), so it needs to be removed. Fixes: QTBUG-113651 Pick-to: 6.5 Change-Id: Idc59416206f9c2082e2a9e21e5ed26675d904495 Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
* Example: revamp sensorsshowcaseDennis Oberst2023-04-2625-687/+736
| | | | | | | | | | | Updated the example to align with the Qt6 Example-Guideline. https://wiki.qt.io/Qt6/Example-Guideline Pick-to: 6.5 Task-number: QTBUG-111254 Change-Id: I8d8028ab5351cd801c8ce5126b1ebe5f2d0f4e50 Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
* Android-example: add missing properties in AndroidManifest.xmlBartlomiej Moskal2023-04-251-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | After changing android target SDK version to 31, some missing values has to be defined in AndroidManifest.xml. AndroidManifest.xml template was updated in qtbase in: 56dee3de5e4ac1c4d37a2c5e27361e7ddbdea1a7 commit. In case when example uses its own AndroidManifest.xml file, it need to be updated separately. * android:exported="true": because the manifest sets an intent-filter, and it then has to explicitly to avoid the warning [1]. * android:allowBackup="true": this has to be explicitly set, we set it to the default value here [2]. * android:fullBackupOnly="false": SDK 23+ use this to deteremine to user auto backup or not, we set it to the default value here [3]. [1] https://developer.android.com/guide/topics/manifest/activity- element#exported [2] https://developer.android.com/guide/topics/manifest/application- element#allowbackup [3] https://developer.android.com/guide/topics/manifest/application- element#fullBackupOnly Pick-to: 6.5 6.2 5.15 Change-Id: Ic38b7bd686ee98a1a821d5c73a9b969f1b23d2a2 Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
* Add sensorsshowcase to examples .pro fileJuha Vuolle2023-02-221-0/+3
| | | | | | | | | | An unintentional omission I believe Task-number: QTBUG-110939 Pick-to: 6.5 Change-Id: I7e2a100175143a4770979f8667ca39d697f9466b Reviewed-by: Lorn Potter <lorn.potter@gmail.com> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* Move sensor_explorer QML example to manual testsJuha Vuolle2023-02-2211-599/+2
| | | | | | | | | | | | | | | | The example is useful as a sensor testing tool, but less necessary as an example. The primary demonstrative element of the example was how to iterate the available sensors, which is covered in a documentation snippet (followup commit). This commit also renames the pre-existing widget-based sensor_explorer manual test to avoid name conflicts, as well as removes the qdoc and qmake support from the now-a-manual-test application. Task-number: QTBUG-110939 Pick-to: 6.5 Change-Id: I422f62f852d0a7e40a76f555ec8aa98404164f7a Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Remove sensors grue exampleJuha Vuolle2023-02-2229-966/+0
| | | | | | | | | | | | | | | | The primary purpose of the grue example is to demonstrate how to create new sensors. However, while a nice implementation, it doesn't achieve this purpose particularly well, and is all in all an overly complex construct given the straightforward purpose (for instance causing build and deployment challenges). Instead it should be replaced with a tutorial-like step-by-step guide on how to add new sensors. The item to track this: QTBUG-111251 Task-number: QTBUG-110939 Pick-to: 6.5 Change-Id: If353fd019483ad3d608f16d90820c09e676f1df1 Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Remove sensors qmlqtsensors exampleJuha Vuolle2023-02-2215-438/+0
| | | | | | | | | | | | | | | The example doesn't add much demonstration value in comparison to sensorsshowcase example. The one unique thing it does demonstrate is ambient light sensor. That sensor can be added to the sensorsshowcase too; but OTOH it is in some sense just 'a' sensor among the sensors, and there is probably no need to use all of them in the examples. Task-number: QTBUG-110939 Pick-to: 6.5 Change-Id: I5d0ba59d969b532689e23388cbdda42884838fca Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Remove sensors maze exampleJuha Vuolle2023-02-2226-923/+0
| | | | | | | | | | | | | | | The Maze (QML) example is a nice game implementation, but doesn't add much demonstration value in comparison to sensorsshowcase example. The one unique thing it does demonstrate is tilt sensor. Tiltsensor can be added to the sensorsshowcase too; but OTOH tilt is in some sense just 'a' sensor among the sensors, and there is probably no need to use all of them in the examples. Task-number: QTBUG-110939 Pick-to: 6.5 Change-Id: I2fd997750b05b3962428955a2929e149af6b72bd Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Remove sensors accelbubble exampleJuha Vuolle2023-02-2212-325/+0
| | | | | | | | | | | | The example is a simple QML accelerometer example, originally introduced as a tutorial for creating Android QML applications, and more importantly superseded by the somewhat recent sensorsshowcase example. Task-number: QTBUG-110939 Pick-to: 6.5 Change-Id: I70b37fcf8e876dd6dba102612ca1421f65802d9a Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Suppress the QTP0001 policy warningAmir Masoud Abdol2023-01-271-0/+1
| | | | | | Pick-to: 6.5 Change-Id: I9b85ac5054601f5207cbb525ce7c92c67e54ab06 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Change from count() to size() with Qt containersJuha Vuolle2022-10-041-5/+5
| | | | | | | | | | As the preferred method. Potentially may be deprecated similar to QString/QByteArray Fixes: QTBUG-107068 Change-Id: I0cfc9d7f8e2e450849f1d22c5b98aa353748ecf6 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Remove disabled sensor gesture codeJuha Vuolle2022-10-0439-1686/+0
| | | | | | | | | | | | | | | Support for sensor gestures in their then-current form was removed in Qt 6 (QTBUG-95747). This commit removes the disabled code. This is to avoid distraction when keeping the repository up-to-date with rest of Qt. The gestures may be reintroduced in some shape or form in the future (QTBUG-97066). For those reference purposes the old code can be found in the git history. Fixes: QTBUG-107065 Change-Id: If2c50171f84d483dde55600422d138d550124bdc Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Change the license of all CMakeLists.txt and *.cmake files to BSDLucie Gérard2022-08-2314-14/+14
| | | | | | | Task-number: QTBUG-105718 Change-Id: I8e1e210b85a5c02947a259edec14a915fa64cfc5 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
* Add license headers to cmake filesLucie Gérard2022-07-0714-0/+42
| | | | | | | | | | | | | CMakeLists.txt and .cmake files of significant size (more than 2 lines according to our check in tst_license.pl) now have the copyright and license header. Existing copyright statements remain intact Task-number: QTBUG-88621 Change-Id: If432c07e9205f97f3c256ca2a8e682478d9dd82c Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
* Use SPDX license identifiersLucie Gérard2022-06-1362-2831/+124
| | | | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. License files are organized under LICENSES directory. Pick-to: 6.4 Task-number: QTBUG-67283 Change-Id: I114588b3215fecda3a9127931f17a33bd4ef1edb Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
* iOS: Add missing Info.plist for maze exampleAlexandru Croitor2022-04-051-0/+32
| | | | | | | | | | | | | | | Previously configuring the example failed with CMake Error: Target maze Info.plist template "qtsensors/examples/sensors/maze/Info.plist" could not be found. Amends a798ef4e3d3bf93be82bfc0ad5d2ca2af0dcd2d5 Pick-to: 6.2 6.3 Task-number: QTBUG-102256 Change-Id: I855d6db47bd1daaea45c5124e96c5c32121b971c Reviewed-by: Juha Vuolle <juha.vuolle@insta.fi>
* Improve examples CMakeLists.txtKai Köhne2022-02-2112-77/+37
| | | | | | | | | | | | | | | | | - Remove "# generated from xyz.pro" comment from pro2cmake - Remove automatic use of CMAKE_AUTORCC - Only opt into CMAKE_AUTOUIC if .ui files are involved - Remove explicit setting of CMAKE_INCLUDE_CURRENT_DIR - Combine multiple find_package(Qt6 ... calls) - use REQUIRED COMPONENTS - sort components alphabetically - Fix wrong indentations - Use (only) one empty line after multi-line commands Pick-to: 6.3 Change-Id: Ie7432614f6060152eb3278724877670059c71495 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
* Switch examples to build as isolated sub-builds part 2Alexandru Croitor2022-02-051-1/+1
| | | | | | | | | | | | | | | qt_examples_build_begin needs the EXTERNAL_BUILD flag to know that it's safe to build examples as ExternalProjects. It still won't do it in CI until we enable building examples as ExternalProjects for prefix builds. This is preparation for that. Pick-to: 6.2 6.3 Task-number: QTBUG-90820 Change-Id: I5019b7b7002f45f701f4965c65cce8dddd42c8d7 Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
* Make geomagnetic mode the default magnetometer behaviorTamás Martinec2021-12-231-1/+0
| | | | | | | | | | | | | | | Geomagnetic mode uses the iOS API that results in similar values on Android and iOS, therefore this should be the default magnetometer behavior. [ChangeLog][QMagnetometer] The default magnetometer behavior is changed to be geomagnetic mode. Task-number: QTBUG-98978 Pick-to: 6.3 Change-Id: I672c4f3b52c187da8c644e7f20f45dcd740b04b0 Reviewed-by: Alex Blasche <alexander.blasche@qt.io> Reviewed-by: Juha Vuolle <juha.vuolle@insta.fi>
* Switch examples to build as isolated sub-buildsAlexandru Croitor2021-12-151-9/+9
| | | | | | | Pick-to: 6.2 6.3 Task-number: QTBUG-90820 Change-Id: Idd7a5cc4829d21e710fc6e3f39d1c578600e9164 Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
* QtSensors: Fix Sensors Showcase Magnetometer on iOSTamás Martinec2021-12-131-0/+1
| | | | | | | | | | | Using geomagnetic mode in Sensors Showcase Magnetometer view so it will behave the same on iOS and Android. Task-number: QTBUG-98423 Pick-to: 6.2 Change-Id: Ieea3b1b1e83a033074bcd5827ae7a519f0e8c2c8 Reviewed-by: Juha Vuolle <juha.vuolle@insta.fi> Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
* Take custom info.plists and Androidmanifests into use with cmakeTamas Martinec2021-11-263-4/+34
| | | | | | | Task-number: QTBUG-97977 Pick-to: 6.2 Change-Id: I85ad6298d964bfe9fe5b8ddd9e83cb1e66664b6c Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* QtSensors: Create a sensors showcase exampleTamas Martinec2021-11-1219-0/+1551
| | | | | | | | | | | Create an example that demonstrates the sensor module sensors more visually than just displaying the sensor reading values. Pick-to: 6.2 Task-number: QTBUG-72329 Change-Id: I7383722124c3aae333cf9218613d7001c9d04690 Reviewed-by: Juha Vuolle <juha.vuolle@insta.fi>
* CMake: Bump almost all cmake_minimum_required calls to 3.16Alexandru Croitor2021-09-2210-10/+10
| | | | | | | | | | | | | Needed for subsequent change that will check and error out if the version is lower than 3.16. We do that to ensure all policies introduced by CMake up to version 3.16 have their behavior set to NEW. Pick-to: 6.2 Task-number: QTBUG-95018 Change-Id: I51ba79ad25f77c6989acb0cb471967b6403c96f2 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Kai Koehne <kai.koehne@qt.io>
* QtSensors: Fix qmake compilation problems in Maze and Accelbubble on AndroidTamas Martinec2021-09-062-116/+79
| | | | | | | | | | The AndroidManifest.xml files were updated according to the latest template in qtbase\src\android\templates\. Pick-to: 6.2 Task-number: QTBUG-92514 Change-Id: Ic1fe8ce6ce937ed91632832187e1208e3536e656 Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
* QtSensors: Fix plugin loading for the Grue example on macOSTamás Martinec2021-08-271-1/+1
| | | | | | | | | The macOS specific plugin lib target path was fixed. Pick-to: 6.2 Task-number: QTBUG-92514 Change-Id: Id25f0a2826c1fa786547a27a579bf28e9e1bb5cd Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* QtSensors Grue example app Linux supportJuha Vuolle2021-08-272-2/+2
| | | | | | | | | | The grue example did not find the grue plugin out of the box on Linux. This commit adjusts the plugin and detect_grue app build destinations. Pick-to: 6.2 Task-number: QTBUG-92514 Change-Id: I53be1e96fa50599545a276c38c37957a4fc56fac Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* CMake: Update sensor_explorer example to new QML CMake APICraig Scott2021-08-232-23/+10
| | | | | | | Task-number: QTBUG-95093 Pick-to: 6.2 Change-Id: Id53456e11225f524fb5ec40539fdc216b62ecf4e Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* QtSensors: Fix and simplify the Grue exampleTamas Martinec2021-08-1828-386/+355
| | | | | | | | | | | Refactoring to use QML cpp class registration instead of a QML plugin. Pick-to: 6.2 Task-number: QTBUG-92514 Change-Id: I7637232d27575522e83ebdbc5c60cdb5663d2cd0 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* QtSensors: Fix and simplify the Shakeit exampleTamas Martinec2021-08-183-30/+71
| | | | | | | | | | Removed the Multimedia dependency and added two new animations instead of the audio playback. Changed fixed window size to dynamic. Pick-to: 6.2 Task-number: QTBUG-92514 Change-Id: I136d08a1bb5c1f06ae0612ceeec177c3abf39084 Reviewed-by: Juha Vuolle <juha.vuolle@insta.fi>
* QtSensors: Make the QMLQtSensors example use the whole screenTamas Martinec2021-08-181-0/+2
| | | | | | | Pick-to: 6.2 Task-number: QTBUG-92514 Change-Id: Ide812d7288c17aa1b8a3af999e5329f214181b7d Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Disable gestures from QtSensorsJuha Vuolle2021-08-162-12/+12
| | | | | | | | | | | | | | | | | | | | The sensor gestures requires some rethinking in order to be of more use for the developers. Therefore we should not yet commit to the old API at least in the first Qt 6 sensors release. This commit disables the gestures by: - Excluding gesture code from compilation - Excluding gesture examples and tests from compilation - Excluding the gesture related documentation - And updating the Qt 6 porting guide Pick-to: 6.2 Task-number: QTBUG-95747 Task-number: QTBUG-95649 Change-Id: I33c1e010825a88b10fa1f7ad49ad3b5383b470aa Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Remove QtSensors QML import versioning from two examplesJuha Vuolle2021-08-102-4/+4
| | | | | | | | | The original batch update to remove the versioning missed two examples. Pick-to: 6.2 Task-number: QTBUG-92514 Change-Id: I813dda7a1ceb81b30d76f000ea55ed487cb2b840 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Examples: Always use Title CapitalizationKai Köhne2021-08-042-2/+2
| | | | | | Pick-to: 6.2 Change-Id: I5930d9381220fbf4337d6cd90b678f0de3354cec Reviewed-by: Paul Wicking <paul.wicking@qt.io>
* Improve QtSensors maze example applicationJuha Vuolle2021-07-022-155/+152
| | | | | | | | | | | | | | | | | | | | | | The original problem was that the example accesses tilt sensor readings even if such sensor is not present, which yields errors. In addition to fixing that, few other concerns are addressed as well. As a summary: - show a screen blocker if tilt sensor is not found - run tilt read / game timer only when the game is running - display the tilt sensor identifier - remove the use of nonexistent TiltSensor::enabled property - separate initial element instantiation from new game generation - remove unnecessary start timer - log dynamic element creation errors, and remove unnecessary component 'ready' checks (as only local QML is used) Pick-to: 6.2 Task-number: QTBUG-72328 Task-number: QTBUG-92514 Change-Id: I6a1589297c3c34b85e2876ede52eab31e07dd950 Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Remove QML import versions from QtSensor examplesJuha Vuolle2021-07-0118-30/+30
| | | | | | | | | QML import versioning is optional and often unnecessary in Qt 6. Pick-to: 6.2 Task-number: QTBUG-92505 Change-Id: I60acf84d8c75560396b896597b143dad283a2e5b Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* Replace Q_FOREACH with ranged for loopsJuha Vuolle2021-06-081-1/+1
| | | | | | Task-number: QTBUG-92505 Change-Id: I1e8334473c883f76285736f6a26138ea882f5351 Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Fix and simplify sensor_explorer exampleJuha Vuolle2021-06-0220-1302/+486
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* 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-193-9/+8
| | | | | | | | | | | 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>
* 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>
* 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>
* Enable sensor_explorer example standalone buildJuha Vuolle2021-04-273-9/+10
| | | | | | | | | | | | | This commit enables building of the example outside of the source tree. Currently the example does not work with Qt 6.2 but requires more "content work" that shall be done under QTBUG-92514 Also removed the Widgets related code as the example is a Quick application. Task-number: QTBUG-92502 Change-Id: I016cf6697dc4603c77437c7f20601937b1fca293 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Add cmake support for two examples missing itJuha Vuolle2021-04-264-11/+65
| | | | | | | | | The grue example remains commented out, it will be addressed with a separate commit as part of the QTBUG-92514 Task-number: QTBUG-92502 Change-Id: Ieb1a61b942ac6adc6880e33478059893a9492730 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* QtSensors initial cmake supportLorn Potter2021-04-1916-0/+617
| | | | | | | | | | | | | | | | | This commit introduces the bare minimum cmake support that should unblock the CI and allow further verification and development on most platforms: macOS, Linux, Win, iOS and Android. Some clarifications: * The support for sensorfw backend is very preliminary and can be enabled later if needed (no Qt6 version of the sensorfw). * The simulator backend is dropped as obsolete / unnecessary. * Three examples are currently commented out and shall be ported with a later commit. Task-number: QTBUG-92502 Change-Id: Id523d43ed3ef177010dc73afc5812ed374cff0dd Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Base commit to make QtSensors runnable on WindowsJuha Vuolle2021-04-193-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | Fair amount of work remains after the commit still, but this should allow further development as a compilable baseline: code compiles, autotests pass, and most example applications at least start. The changes: -Change examples to use QtQuickControls 2 as per removal of v1 -Fix ambiguous conditional expression compilation error -Link against runtimeobject library (previously part of winrt QPA?) -Change the .pro file rule to win32 as winrt moniker does not exist anymore -Remove references to deleted winrt event dispatcher -Fix error handling: getdefault may be successful even if there is no default sensor -Fix QCOMPARE failure output (toString has changed in Qt6) -Remove qtimestamp alias which was deprecated already in Qt5 -Remove unit test hook that does not seem to be used anywhere -From typedef to ‘using’ for readability -Q_ENUMS -> Q_ENUM as the former has been obsoleted by the latter -Add qt6 changes qdoc page Task-number: QTBUG-88616 Change-Id: I92c168228ba76106b2c636c88f54331c76c3d2e6 Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io> Reviewed-by: Oliver Wolff <oliver.wolff@qt.io> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Android: rename the java package name in manifestsAssam Boudjelthia2021-02-122-4/+4
| | | | | | Task-number: QTBUG-86969 Change-Id: I11bad2d6945e27a859b68471816ef428d3834189 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>