summaryrefslogtreecommitdiffstats
path: root/examples/sensors/grue/plugin
Commit message (Collapse)AuthorAgeFilesLines
* Use SPDX license identifiersLucie Gérard2022-06-136-294/+12
| | | | | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. License files are organized under LICENSES directory. Task-number: QTBUG-67283 Change-Id: I114588b3215fecda3a9127931f17a33bd4ef1edb Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io> (cherry picked from commit 6edf1f6eab3341785163fae10915782ba45dca63) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Improve examples CMakeLists.txtKai Köhne2022-02-211-9/+2
| | | | | | | | | | | | | | | | | - 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>
* CMake: Bump almost all cmake_minimum_required calls to 3.16Alexandru Croitor2021-09-221-1/+1
| | | | | | | | | | | | | 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 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-271-1/+1
| | | | | | | | | | 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>
* QtSensors: Fix and simplify the Grue exampleTamas Martinec2021-08-186-25/+358
| | | | | | | | | | | 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>
* Rename subclass static variable which shadowed baseclass methodJuha Vuolle2021-05-191-6/+5
| | | | | | | | | | | 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 initial cmake supportLorn Potter2021-04-191-0/+56
| | | | | | | | | | | | | | | | | 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>
* Remove usages of deprecated APIs from QDateTimeSona Kurazyan2019-06-271-2/+2
| | | | | | | | | | | | - Replaced QTime by QElapsedTimer, because of the usage of QTime::start() and QTime::elapsed() methods, which are deprecated. - Replaced the deprecated QDateTime::toTime_t() with QDateTime::toSecsSinceEpoch(). Task-number: QTBUG-76491 Change-Id: I625ce6bbc2718cd3c1b4905fecef9d75fdbab618 Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Add missing override and remove redundant virtualAlexander Volkov2017-11-142-5/+5
| | | | | Change-Id: I51c0fc424f44ae68c3c1c4cf6377e7701ee5a0dd Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Fix grue sensor example building on macOSEike Ziller2017-05-291-3/+3
| | | | | | Task-number: QTBUG-33875 Change-Id: Idd72b689aaae727df77daecb616d5c47b9bb809c Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Fix licensingJani Heikkinen2017-05-103-9/+39
| | | | | | | | | | | | | | | | | - Remove unused old license files - Update BSD and FDL license headers - Unify licensing * Examples are nowdays licensed under BSD, update correct license header to there * Tools and tests are nowdays licensed under GPL-EXCEPT, update correct license header to those * Src is nowdays licensed under LGPL, update correct license header to there Task-number: QTBUG-57147 Change-Id: I5d9d7a3bc5e360f01ec73fb6a2a873f3173b5918 Reviewed-by: Lars Knoll <lars.knoll@qt.io> Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* fix example installsOswald Buddenhagen2016-05-101-0/+2
| | | | | | Change-Id: Id7b94644f9db10bce3ef3539f4ff275f5f6f37b0 Reviewed-by: Topi Reiniö <topi.reinio@theqtcompany.com> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* Update copyright headersJani Heikkinen2015-02-173-12/+12
| | | | | | | | | Qt copyrights are now in The Qt Company, so we could update the source code headers accordingly. In the same go we should also fix the links to point to qt.io. Change-Id: I141862df4ed2475c05ebbeb8fe447c4a6e736849 Reviewed-by: Antti Kokko <antti.kokko@theqtcompany.com>
* Merge remote-tracking branch 'origin/stable' into devSergio Ahumada2013-09-061-5/+7
|\ | | | | | | Change-Id: Ie5c68600ed2b7d6145497dcbceae5f320f7eea6f
| * Doc: Update Grue Sensor exampleTopi Reinio2013-08-141-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix a number of issues with the example: - Add \omit to generated doc sections, we don't want qdoc to process these (not part of Qt docs) - Combine the 5 separate examples into a single \example and discuss each subproject in a subsection - Add example image to doc - Fix deployment/build target directories and import paths - Define a 'reading' property for the sensor to make it work on QtSensors 5.1 - Fix the Grue QML application to avoid flicker from frequent updates. Task-number: QTBUG-32881 Change-Id: I2785faead1baaf5b1ae9d05df3398e018e945418 Reviewed-by: Jerome Pasion <jerome.pasion@digia.com> Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* | Enable the Grue sensor plugin no matter what other sensor plug-in is installedAlex Blasche2013-07-291-1/+1
|/ | | | | | | | | | If multiple plugins with the same key are installed only the first one is used and any subsequent plugin with the same key is ignored. This prevents the Grue example from working as it requires a Light sensor and the Grue sensor. All other plug-ins use the "unused" key. Change-Id: I3cb28d3ffec407fb27b4550521acf28bd9c7b073 Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* remove nokia and replace with qt-project in pluginsLorn Potter2013-02-071-1/+1
| | | | | Change-Id: I63fa985991653e4b8465a7fb88acab647d8546e8 Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
* QtSensors examples: Install plugins under the example tree structureTopi Reinio2012-09-271-1/+7
| | | | | | | | | | | | | QtSensors 'Grue' and 'Sensor Explorer' examples include qml imports, a Qt plugin and a shared library. Modify the related .pro files to install everything under QT_INSTALL_EXAMPLES, instead of the main Qt install directory. Task-number: QTBUG-26860 Change-Id: I32d4f66e5b18468c17b668ecb76f969ed15e4c50 Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com> Reviewed-by: Alex <ablasche@gmail.com> Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Change copyrights from Nokia to DigiaIikka Eklund2012-09-243-18/+18
| | | | | | | | | | Change copyrights and license headers from Nokia to Digia Change-Id: I85014238e262cb59d8d92b0d708851e82e5633da Reviewed-by: Janne Anttila <janne.anttila@digia.com> Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com> Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com> Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Get all the examples building and running on Desktop.Lincoln Ramsay2012-06-201-7/+0
| | | | | | | | Build the required C++ stubs for each example and deploy all the files so that the examples are runnable. Change-Id: I03d23cb37e1c484110a58934a9b0aa550d6915a6 Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Remove the 'special' naming of examples.Lincoln Ramsay2012-06-205-0/+326
| | | | | | | Just go back to the naming convention we had before. Change-Id: Iefecb7a5e0ab3aa4d22267b4f475a8e9c1c96058 Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Unfork the examples.Wolfgang Beck2012-05-245-326/+0
| | | | | | | | | | | | Some examples were forked off and updated. Unfork by bringing these changes back (a later update will bring the other examples in line with this new style). The changes are primarily made up of file renaming. Also, JPG files have been converted to PNG. Some documentation updates have been done. Change-Id: Ib090abb5ebea2003d479d2336a23317f52b8c4d8 Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Package the grue sensor example into a self-contained bundle.Lincoln Ramsay2012-04-161-0/+6
| | | | | | | | Cleaner for deployment (no need to write to inaccessible system locations) though it uses a bit of a hack to get QtSensors to find the backend plugin. Change-Id: Ibfa765d928a2d57429832c68594bcbe38f9d6a6e Reviewed-by: Zsolt Simon <zsolt.simon@nokia.com>
* Use the new plugin mechanism for Sensors and SensorGesturesLincoln Ramsay2012-03-163-4/+6
| | | | | | | | | | | | | | Plugins no longer use QFactoryInterface or Q_EXPORT_PLUGIN. Instead, Q_PLUGIN_METADATA is used. Meta-data is provided through a .json file that is embedded into the plugin by moc. For now, this meta-data is not actually used because both sensors and gestures use a dynamic registration mechanism. Change-Id: Ic82657e2ba5768127e13f7411ca51f60772781d8 Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Update the examples.Lincoln Ramsay2012-02-271-5/+0
| | | | | | | | | | | Use .pro files, no .qmlproject files. Remove unused settings.json and notions.json files. Install to EXAMPLES_PREFIX when it is defined. Dest paths match info.json identifiers. No execute bit on non-executable files. Change-Id: Ib09320bd976b8aec7512531ce11ed92f05912dde Reviewed-by: Wolfgang Beck <wolfgang.beck@nokia.com>
* Remove "All rights reserved" line from license headers.Jason McDonald2012-01-303-3/+3
| | | | | | | | | | | As in the past, to avoid rewriting various autotests that contain line-number information, an extra blank line has been inserted at the end of the license text to ensure that this commit does not change the total number of lines in the license header. Change-Id: I1ecfbf66a49bb91dd995d92c871ca36148adc645 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Update obsolete contact address.Jason McDonald2012-01-233-3/+3
| | | | | | | | Replace Nokia contact email address with Qt Project website. Change-Id: Ie8628548cde5d3b251f319cbb6f33e6c08852d9e Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Update copyright year in license headers.Jason McDonald2012-01-053-3/+3
| | | | | | Change-Id: I7fdedc329cf80f84f1f6e0c6c9da3f7d1ebcd70d Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Grue example doesn't work in simulatorWolfgang Beck2011-12-202-6/+12
| | | | | | Change-Id: I486e24befd3f31345ec7f8dffd9a183f9f2ec4cb Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Grue example doesn't stop counting when reaches 100Wolfgang Beck2011-12-151-1/+1
| | | | | | | Change-Id: I8dfc97897e4d42b657b55ab3e3d734556313c48b Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com> Reviewed-by: Wolfgang Beck <wolfgang.beck@nokia.com>
* Fixed QtSensors example namespace compilation.Toby Tomkins2011-11-281-0/+2
| | | | | | | | Explicitly include QTimer. Change-Id: I24667b038106854d39f83fad8cf11225b153df79 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* QtSensors: Fix compilation of examples/warnings on Windows.Friedemann Kleint2011-11-251-1/+1
| | | | | | | | | | | | - Fix double->float truncation in tests - Use -rdynamic for g++ only - Introduce EXPORT macro in grue library for Windows to work - Add DESTDIR for the grue lib (to prevent it from ending up in the debug/release subfolders, respectively Change-Id: I3b902b501483c92639c0a6252240db4ed8a4a00d Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* remove qmobilitypluginsearch and use the QFactoryLoader instead.Lorn Potter2011-11-141-1/+2
| | | | | | Change-Id: Ifdd2031d309a5ac4cbeedc5d7cdb6ba9cbb845c3 Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com> Sanity-Review: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Fix linking of the grue sensor exampleLincoln Ramsay2011-10-181-1/+1
| | | | | | | | This got through the CI gate because it doesn't test shadow building. Change-Id: I690c3342a207662463b154e439d9a4faf3ea2002 Reviewed-by: Daniel Kovacic <daniel.kovacic@nokia.com> Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* update license headersLincoln Ramsay2011-10-103-6/+6
| | | | | | | Change-Id: Ifbbcb23eed144e7ac4a91bc5d132dea32937f93c Reviewed-on: http://codereview.qt-project.org/6275 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Grue Sensor installation and device testing.Lincoln Ramsay2011-10-101-1/+4
| | | | | | | | | | Some installation things needed to be tweaked. Appearance on devices needed to be updated. Change-Id: I62ab94212ff1ee8b3778f4492e60b33b29d68927 Reviewed-on: http://codereview.qt-project.org/6225 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Grue Sensor exampleLincoln Ramsay2011-10-104-0/+311
Updated, documented as an example. Now with a QML import and a QML app. Fixes: MTMW-85 Change-Id: I06772cf4a07ea0d2ec7bfccda6e8f51b5d866c20 Reviewed-on: http://codereview.qt-project.org/6016 Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>