summaryrefslogtreecommitdiffstats
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* Doc: Clean up SensorGesture QML exampleTopi Reinio2013-11-045-71/+80
| | | | | | | | | | Fix warnings, fix property names and strings shown in the UI. Also touch the documentation and correct a typo in the qdoc file name. Task-number: QTBUG-33877 Change-Id: Ie790708ac4d1f8d72af03b52ee361d0bf3994adc Reviewed-by: Lorn Potter <lorn.potter@jollamobile.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-0612-74/+125
|\ | | | | | | Change-Id: Ie5c68600ed2b7d6145497dcbceae5f320f7eea6f
| * Remove the explicit core/gui explicit QT addition for the gestures exampleLaszlo Papp2013-09-061-1/+1
| | | | | | | | | | Change-Id: Ie3087e97815ee59df4af732ce3b663ad283966bf Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
| * 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>
* | Merge remote-tracking branch 'origin/stable' into devFrederik Gladhorn2013-08-129-30/+58
|\| | | | | | | Change-Id: I7a9c32e8314fe1f753e40464cc5fbd16895c3665
| * Updated the example to use SVG content and Qt Quick controls.v5.1.1Venu2013-08-029-30/+58
| | | | | | | | | | | | | | | | | | | | | | Using sensors module and svg content in a Qt Quick app has been tricky so far as the C++ plug-in dependencies are not detected automatically by creator. This change is intended to make the app suitable for a tutorial explaining how to create a Qt Quick app for Android. Change-Id: I05b7413b1224e009ae739cf7a16181519cab7619 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.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>
* Fix loading of all sensorgesture plugins.v5.1.0-rc2v5.1.0Lorn Potter2013-06-222-2/+1
| | | | | | | | | | | | | | After the change in qtbase 732dcfe7, only the first sensorgesture plugin was actually being loaded. Since the FILE argument of Q_PLUGIN_METADATA is optional, removing that and the json file fixes the following bugs: QTBUG-31900 QTBUG-31901 Change-Id: I7c0b67605a8fe680c37639f08926140e137dbe66 Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com> Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* Doc: Fix errors in Qt Sensors QML exampleTopi Reinio2013-05-274-187/+149
| | | | | | | | | | This change fixes the errors in example QML code by replacing the overuse of anchors with Column/Row components, and cleaning up by refactoring reusable code into a new QML type. Task-number: QTBUG-31076 Change-Id: Iade6f98d7db716848c44d4066aa23064929b32f2 Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* Sensors examples: Use resource system for QML examplesTopi Reinio2013-05-2317-1/+116
| | | | | | | | | | | 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>
* Add module check to examples .pro-file.Friedemann Kleint2013-05-211-2/+6
| | | | | | | Task-number: QTBUG-31076 Change-Id: I345cb91f82262b64c2d414bec585e5a7ca724ce3 Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.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-082-3/+3
| | | | | | | | 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>
* It's org.qt-project for plugin interfacesLorn Potter2012-11-291-1/+1
| | | | | Change-Id: I4b442f25f4593f2d957ff572b5ec565ff952818b Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* remove Nokia isms from plugin interfaceLorn Potter2012-11-281-1/+1
| | | | | | | As well as from documentation and usage of Sensors.conf location Change-Id: I52d657d6799e44a94b3f37bae86445c73e176103 Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
* Remove the QtSensors:: prefix from documentation.Thomas McGuire2012-11-032-5/+5
| | | | | | | | This appears to be implicit. Now the property documentation is built correctly. Change-Id: I3998582fdeabf751a612c379df69f5eb41b9419d Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* adjust to qt_plugin.prf and qml_plugin.prf changesOswald Buddenhagen2012-11-021-6/+12
| | | | | | | | | | | DESTDIR and INSTALLS+=target are set up automatically now, but PLUGIN_TYPE needs to be defined. this contains a nasty hack for examples, as we don't want users to use the internal prf files. Change-Id: I9e854e7ff6183e19801998ff7157a279b97b2be4 Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* indentation, whitespace and one missing closing braceShawn Rutledge2012-10-191-159/+160
| | | | | Change-Id: I8ae1ffbf38ec6c81c12f8ff487e159206cf00f0d Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Doc: Modularized the Qt Sensor DocsGeir Vattekar2012-10-1214-87/+699
| | | | | Change-Id: Ie8636ec443f43b1f238342e0f6f7d321e13dce09 Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
* Rename QtMobility.sensors 1.3 to QtSensors 5.0Lincoln Ramsay2012-10-1111-12/+12
| | | | | Change-Id: I2b24533d38db1f8e205de19b67fe0b21625bbf6b Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Remove the QtSensors 5.0 importLincoln Ramsay2012-10-097-96/+26
| | | | | | | | | | | The gesture tests that were part of the sensors2 unit test have been retained. The tilt sensor tests were not, though they could be used as a base to make a unit test for the new tilt sensor class. Change any existing imports to use QtMobility.sensors 1.3. Change-Id: I8a7130b3c73980fdd577e96c10aecda15e79f8b2 Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Add TiltSensor to QtMobility.sensors 1.3Lincoln Ramsay2012-10-032-85/+4
| | | | | | | | | | | This has been adapted from the TiltSensor type in QtSensors 5.0 import but the code there has been split into multiple pieces. There's a C++ class, a generic backend and a QML interface. Change-Id: Ic09465a5f76250a02a13938abe4789958137376f Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* QtSensors examples: Install plugins under the example tree structureTopi Reinio2012-09-277-6/+18
| | | | | | | | | | | | | 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-262-5/+3
| | | | | | | | | 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-2459-480/+480
| | | | | | | | | | 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>
* Make sensor explorer example againv5.0.0-beta1Thomas McGuire2012-08-282-6/+0
| | | | | | | | | | In QML it is now no longer allowed to override signals with a new signal that has the same name. In this case, the property change notification signal was overridden. Turns out that is not needed anyway here. Change-Id: I7e0a3f00098867dfb98273f264cc8dddd15cfaec Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Fix QTBUG-26860 - install examples to qtsensors directoryLorn Potter2012-08-1611-22/+19
| | | | | Change-Id: Iab2407798616ed08ce7789020fe47b00e226d62d Reviewed-by: Alex <ablasche@gmail.com>
* Only build qml components/examples if qtdeclarative is presentCorentin Jabot2012-08-082-11/+14
| | | | | 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-2035-73/+481
| | | | | | | | 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-2016-179/+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-20133-17/+17
| | | | | | | Just go back to the naming convention we had before. Change-Id: Iefecb7a5e0ab3aa4d22267b4f475a8e9c1c96058 Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Fix a broken snippetLincoln Ramsay2012-06-191-2/+2
| | | | | Change-Id: I9b3e402c07799b10b7480a891b576b2e9e56711c Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Docs: change QML elements to QML types in docs.Peter Yard2012-06-194-10/+10
| | | | | Change-Id: I54a9a1972978f1d989d262f137b5890d1feb35e0 Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Qt.multimediakit 4.0 -> QtMultimedia 5.0Lincoln Ramsay2012-06-041-2/+1
| | | | | | | The Qt.multimediakit import is deprecated. Switch to QtMultimedia 5.0 Change-Id: I2fd86a52b4427636e49283704c044a7388825120 Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Fix display problems.Lincoln Ramsay2012-06-012-1/+3
| | | | | | | | The list needs to clip its contents. Give a bit of space at the top. Change-Id: I9eb7d9fe8c1ed01efa15f1805baeb54e725c1040 Reviewed-by: Daron Andrew Edie <daron.edie@nokia.com>
* Install all .qml files.Lincoln Ramsay2012-06-018-21/+9
| | | | | | | | | | | | | Instead of having a list of .qml files that needs to be kept in sync with the filesystem, pull in all .qml files. 2 examples (cube house, QML sensor gestures) were broken by having the .pro contents failing to match the filesystem. A similar change is made for the one project with .js files. Change-Id: I935a32b78138dfd2698d508a7524035eb5c0c2f9 Reviewed-by: Daron Andrew Edie <daron.edie@nokia.com>
* smooth out AccelBubble's bubble movement, and fixup docs accordingly.Lorn Potter2012-05-301-51/+32
| | | | | Change-Id: I8b4988e9e3b4671ca8558364350c52d46aa7409c Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* there is no main.qml file here. Now it shows up in creator.Lorn Potter2012-05-301-1/+2
| | | | | Change-Id: I1c0dd3dea4a0b296388f66fc44fed560da85e028 Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* make mouse move better ine Maze example, add acceleration. Fix up docsLorn Potter2012-05-2910-110/+89
| | | | | | | | Use only one mouse gif and rotate it instead. also add screensaver inhibit. Change-Id: I4268bdec9346ee389e9b485e8c37d43a1e607128 Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Update Examples using the same name conventionsWolfgang Beck2012-05-2865-24/+25
| | | | | | | | | e.g. Folder of example should start with QtSensorrs_ Example documentation title should start with QtSensors - images folder renamed to content Change-Id: I341fb8510ba3ad64068d786559e8d28af5d135c3 Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Update info.json files to use the new standard.Wolfgang Beck2012-05-254-37/+39
| | | | | Change-Id: Ia32cbf8dbc2e1aaa80896568a346bef062715618 Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Unfork the examples.Wolfgang Beck2012-05-24143-99/+114
| | | | | | | | | | | | 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>
* remove code that created warning messages.Lorn Potter2012-05-161-2/+0
| | | | | Change-Id: Iea0f2202bf88589c6c910e3f41b913a42485685d Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* add doubletap gesture to shakeit.Lorn Potter2012-04-271-2/+34
| | | | | Change-Id: Ic30ec2d896b6db83e3420d38a70644ab34b5bdc9 Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Direct rendering is known to be buggy.Lincoln Ramsay2012-04-271-1/+0
| | | | | Change-Id: I461b35e778ddf61008a32485b699e440132a0b22 Reviewed-by: Wolfgang Beck <wolfgang.beck@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>
* Try to smooth out camera movements.Lincoln Ramsay2012-04-272-3/+6
| | | | | | | | I don't remember this being so apparently jerky before. This is... better though not quite there. Change-Id: Ifa54071e139b4dbb278ed96087f7e138dfac30e4 Reviewed-by: Wolfgang Beck <wolfgang.beck@nokia.com>