summaryrefslogtreecommitdiffstats
path: root/examples/sensors/grue
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* more properly document GrueSensor QML elementLincoln Ramsay2012-01-121-13/+2
| | | | | | Change-Id: I61e2681f0573e2541c9101f684ddb1dbf3857745 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Peter Yard <peter.yard@nokia.com>
* Update copyright year in license headers.Jason McDonald2012-01-059-9/+9
| | | | | | Change-Id: I7fdedc329cf80f84f1f6e0c6c9da3f7d1ebcd70d Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Fixed shadow builds on platforms other than Windows.Rohan McGovern2011-12-291-1/+3
| | | | | | | | | | | | | | | | | | | | | | | This example .pro file was doing DESTDIR = $$OUT_PWD ... apparently to escape from the debug/release subdirectory on Windows. This is redundant on Linux, and actually harmful, because when DESTDIR is set, the generated makefile includes commands conceptually similar to: rm -f $$DESTDIR/$$TARGET mv $$OUT_PWD/$$TARGET $$DESTDIR/$$TARGET Therefore, if DESTDIR equals OUT_PWD, the TARGET itself is deleted. Change-Id: I73278d9aec0d37200c8bc9c9755145f4968b2684 Reviewed-by: Toby Tomkins Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Toby Tomkins <toby.tomkins@nokia.com>
* Grue example doesn't work in simulatorWolfgang Beck2011-12-206-24/+28
| | | | | | 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>
* Apply consistent naming to sensors appsWolfgang Beck2011-11-301-1/+1
| | | | | | Change-Id: I1967516051e64a56eb5476007fb50e1668a53656 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.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-255-5/+14
| | | | | | | | | | | | - 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>
* Don't actually document Grue Sensor things.Lincoln Ramsay2011-11-032-13/+13
| | | | | | | | If we do this, qdoc puts these things into global indexes which is not good. Change-Id: I0d46ce74de1067bbd3a9af25f73f9bc94d919ff3 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Peter Yard <peter.yard@nokia.com>
* Fix linking of the grue sensor exampleLincoln Ramsay2011-10-182-2/+2
| | | | | | | | 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>
* make the grue sensor icon stand out betterLincoln Ramsay2011-10-112-0/+0
| | | | | | | Change-Id: Ifa2c2df6614f136efbfccdf0cc50e6a05785ecd5 Reviewed-on: http://codereview.qt-project.org/6291 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* grue sensor doesn't build under device build systemLincoln Ramsay2011-10-101-11/+0
| | | | | | | | | | this copy logic won't work anyway... the qmldir file is installed properly by make install so just use that. Change-Id: I26bba4313901cbe1744a32b17966211ef70ad03a Reviewed-on: http://codereview.qt-project.org/6290 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* update license headersLincoln Ramsay2011-10-109-42/+41
| | | | | | | 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-106-12/+41
| | | | | | | | | | 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-1017-0/+982
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>