summaryrefslogtreecommitdiffstats
path: root/examples/sensors/grue
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* 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>
* QtSensors initial cmake supportLorn Potter2021-04-195-0/+187
| | | | | | | | | | | | | | | | | 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-145-8/+8
| | | | | Change-Id: I51c0fc424f44ae68c3c1c4cf6377e7701ee5a0dd Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Fix grue sensor example building on macOSEike Ziller2017-05-295-7/+19
| | | | | | Task-number: QTBUG-33875 Change-Id: Idd72b689aaae727df77daecb616d5c47b9bb809c Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Fix licensingJani Heikkinen2017-05-1011-35/+135
| | | | | | | | | | | | | | | | | - 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 loading of QML pluginsv5.8.0-alpha1Simon Hausmann2016-08-261-1/+1
| | | | | | | | | | Since commit 709f6370884b110def2e4665df8fa7bbf5fae734 the plugin loader is strict about requiring the correct interface id, to avoid loading unrelated plugins in the loader thread (which they may not be prepared to do). Change-Id: I84e4d927489f9a14615db399b560af4b352bf045 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* fix example installsOswald Buddenhagen2016-05-105-0/+12
| | | | | | Change-Id: Id7b94644f9db10bce3ef3539f4ff275f5f6f37b0 Reviewed-by: Topi Reiniö <topi.reinio@theqtcompany.com> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* make plugin .json naming better follow the project structureOswald Buddenhagen2016-05-103-2/+2
| | | | | | | | it's more intuitive that way, and easier to deal with for the example source install magic. Change-Id: I547717463756c4b0bb86e401abfb5ddf7a605020 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* make use of COPIESOswald Buddenhagen2016-04-281-10/+3
| | | | | Change-Id: I1df10894b0d0e4adba411db2dfc818f8bd39f6df Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* Purge sRGB chunks from PNGs in documentation.Edward Welbourne2016-03-011-0/+0
| | | | | | | | Subjects each *.png file that matched grep -law "sRGB" to: pngcrush -ow -brute -rem allb -reduce -force Change-Id: Ie54ce7153b23632cf2673f6f82ae8b3e4dec6e67 Reviewed-by: Lorn Potter <lorn.potter@canonical.com>
* Purge sRGB chunks from PNGs in examples.Edward Welbourne2016-03-011-0/+0
| | | | | | | | Subjects each *.png file that matched grep -law "sRGB" to: pngcrush -ow -brute -rem allb -reduce Change-Id: I4e15dcbf74334985f4a3e366443b2be7016e76a3 Reviewed-by: Lorn Potter <lorn.potter@canonical.com>
* Update copyright headersJani Heikkinen2015-02-1711-46/+46
| | | | | | | | | 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>
* Remove unnecessary \inqmlmodule parameterAlejandro Exojo2014-12-081-2/+2
| | | | | Change-Id: I23232dcb9d13605f973144f64ffb93b0d9013c65 Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
* Change slashes depending on host in examples.Friedemann Kleint2014-04-151-1/+1
| | | | | | Task-number: QTBUG-38224 Change-Id: I3c7a3d0b3a47696aeb2eee799ae119419ea60713 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
* Fix the examples so they can be deployed on AndroidAndy Shaw2014-03-102-4/+2
| | | | | | Change-Id: I8d3b0c84091cf7743164c083318e0a115e948d1c Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com> Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
* QML examples: Avoid using release/debug output subdirectoryv5.2.0-rc1Topi Reinio2013-11-211-0/+3
| | | | | | | | | | | | | | | Qt Sensors examples that include additional QML modules fail to run on Windows, because the application located under a debug or release subdirectory does not see the module import path. This change fixes the issue by adjusting examples' DESTDIR on Windows builds. Task-number: QTBUG-33875 Change-Id: Iab8ebc1acd80cf4fe88a7a35b44c42f767da5ccf Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* Unambiguous example nameAndreas Holzammer2013-11-041-1/+1
| | | | | | | | | | For the example a QML plugin with the same name is created, which just differs in case. Windows does not support case sensitive files/folders. So QNX compile under windows fails. Change-Id: I20283fd9ebb125475c5e7ba19a35a67569785c69 Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* grue example: Set qmldir.path correctly.Dmitry Shachnev2013-10-301-1/+1
| | | | | | | | | | It should be $$DESTPATH, not $$DESTDIR, otherwise the build will install files to wrong locations like debian/tmp/build/buildd/... when building Debian packages. Change-Id: Iae1bd2d190dd1653f06d0f043f1b701b7cb46eb4 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com> Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
* Merge remote-tracking branch 'origin/stable' into devSergio Ahumada2013-09-0611-73/+124
|\ | | | | | | Change-Id: Ie5c68600ed2b7d6145497dcbceae5f320f7eea6f
| * Doc: Update Grue Sensor exampleTopi Reinio2013-08-1411-73/+124
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* Sensors examples: Use resource system for QML examplesTopi Reinio2013-05-232-0/+9
| | | | | | | | | | | Adds resources (.qml, .js, images, etc.) used in QML examples as Qt resources. This enables running the examples successfully when shadow building, without copying the files around. Task-number: QTBUG-31076 Change-Id: I0f3352cffdc334f6139aac60acd3345710516d65 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> 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>
* make use of qtHaveModule()Oswald Buddenhagen2013-01-081-1/+1
| | | | | | | | Change-Id: I17123244323118e9dc9faa090f94faa9b2dcb795 Reviewed-by: Tasuku Suzuki <stasuku@gmail.com> Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com> Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com> Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* Remove the QtSensors:: prefix from documentation.Thomas McGuire2012-11-031-2/+2
| | | | | | | | This appears to be implicit. Now the property documentation is built correctly. Change-Id: I3998582fdeabf751a612c379df69f5eb41b9419d Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Doc: Modularized the Qt Sensor DocsGeir Vattekar2012-10-121-0/+162
| | | | | Change-Id: Ie8636ec443f43b1f238342e0f6f7d321e13dce09 Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
* Rename QtMobility.sensors 1.3 to QtSensors 5.0Lincoln Ramsay2012-10-112-3/+3
| | | | | Change-Id: I2b24533d38db1f8e205de19b67fe0b21625bbf6b Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* QtSensors examples: Install plugins under the example tree structureTopi Reinio2012-09-275-5/+16
| | | | | | | | | | | | | 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>
* QtMobility.sensors has a new implementationLincoln Ramsay2012-09-261-4/+2
| | | | | | | | | This implementation fixes the limitations the original code had and separates the QtSensors C++ API from the QML API so that changes to one don't need to affect the other. Change-Id: I519463f3c7cfbad3bce5c291ce166b8793d5ed4a Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Change copyrights from Nokia to DigiaIikka Eklund2012-09-2410-60/+60
| | | | | | | | | | 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>
* Fix QTBUG-26860 - install examples to qtsensors directoryLorn Potter2012-08-161-1/+1
| | | | | Change-Id: Iab2407798616ed08ce7789020fe47b00e226d62d Reviewed-by: Alex <ablasche@gmail.com>
* Only build qml components/examples if qtdeclarative is presentCorentin Jabot2012-08-081-1/+2
| | | | | Change-Id: I31e1873e9ef243c86c07b0a39edc9d1d61820944 Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Doc: Changed \qmlclass to \qmltype and added \instantiatesJerome Pasion2012-07-301-2/+4
| | | | | | | | | | -\qmlclass is now \qmltype -\instantiates is for QML types implemented in C++ Change-Id: I7f1af4eae6ad9d199859911b5ab51696a59a9b36 Reviewed-by: Laszlo Papp <lpapp@kde.org> Reviewed-by: Peter Yard <peter.yard@nokia.com> Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
* Get all the examples building and running on Desktop.Lincoln Ramsay2012-06-208-32/+56
| | | | | | | | 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 device-specific files.Lincoln Ramsay2012-06-202-22/+0
| | | | | | | These aren't needed anymore. Change-Id: I723dfd8a85cd05c11135601908a90386cb840967 Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Remove the 'special' naming of examples.Lincoln Ramsay2012-06-2023-0/+1045
| | | | | | | 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-2423-1043/+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>
* Fix the Grue sensor exampleLincoln Ramsay2012-04-272-12/+37
| | | | | | | | QtUiTest (and possibly other things) will conspire to ensure our loading hack does not work. Do it the foolproof way instead. Change-Id: I4bb094a43498c2a58da2ed7fc656280ab40d5f06 Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Package the grue sensor example into a self-contained bundle.Lincoln Ramsay2012-04-165-0/+37
| | | | | | | | 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>
* Add .qmltypes files for Creator.Lincoln Ramsay2012-03-281-1/+1
| | | | | | | | | | Only doing this for the actual QML APIs, not the examples ones. Can run make rebuild_qmltypes from a build directory to rebuild the .qmltypes files automatically. Change-Id: Ie1253646dde25861673c303b015a9ba9a4f0fbe3 Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Update QML plugins to the new style.Lincoln Ramsay2012-03-163-3/+5
| | | | | Change-Id: Ie419b58c4789e539be5370dc0b7d2518009bbe91 Reviewed-by: Lorn Potter <lorn.potter@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>
* Fix display of Grue app.Lincoln Ramsay2012-03-084-7/+23
| | | | | | | | | | Don't just assume a white background will be set. We're now using a black background with white text. Fade in a grue as your chance of being eaten increases. Change-Id: I47af31f2f0092136ce3da377e1c6ffc21af07496 Reviewed-by: Daron Andrew Edie <daron.edie@nokia.com>
* Rename declarative symbols.Lincoln Ramsay2012-03-082-4/+4
| | | | | | | Use the script rename-qtdeclarative-symbols.sh. Change-Id: Ib1a62731a6c95590978a488c4afbd804f14fb958 Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Allow opening examples directly from Qt Creator.Lincoln Ramsay2012-02-292-0/+4
| | | | | | | | The MT_SYSROOT environment variable is set in this case so we can use this to set the correct installation path. Change-Id: I923b1ea97468414a123c97a01b0405604827a99b Reviewed-by: Zsolt Simon <zsolt.simon@nokia.com>
* Update the examples.Lincoln Ramsay2012-02-278-77/+28
| | | | | | | | | | | 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-309-9/+9
| | | | | | | | | | | 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-239-9/+9
| | | | | | | | 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>