diff options
Diffstat (limited to 'examples')
40 files changed, 143 insertions, 373 deletions
diff --git a/examples/sensors/maze/info.json b/examples/sensors/maze/info.json index 9820302..3aa2369 100644 --- a/examples/sensors/maze/info.json +++ b/examples/sensors/maze/info.json @@ -6,8 +6,8 @@ "DisplayName": "Maze", "Subcategory": "utility", "MainQML": "Maze.qml", - "Version": "1.0", - "Identifier": "com.nokia.mt.maze.demo", + "Version": "1.0.0", + "Identifier": "com.nokia.mt.maze", "Summary": "Labyrinth game using TiltSensor", "Author": "Qt" } diff --git a/examples/sensors/maze/maze.pro b/examples/sensors/maze/maze.pro new file mode 100644 index 0000000..a15e39e --- /dev/null +++ b/examples/sensors/maze/maze.pro @@ -0,0 +1,4 @@ +TEMPLATE = subdirs + +SUBDIRS = qml.pro + diff --git a/examples/sensors/maze/maze.qdoc b/examples/sensors/maze/maze.qdoc deleted file mode 100644 index 3b89271..0000000 --- a/examples/sensors/maze/maze.qdoc +++ /dev/null @@ -1,57 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the documentation of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:FDL$ -** GNU Free Documentation License -** Alternatively, this file may be used under the terms of the GNU Free -** Documentation License version 1.3 as published by the Free Software -** Foundation and appearing in the file included in the packaging of -** this file. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms -** and conditions contained in a signed written agreement between you -** and Nokia. -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -/*! - \example sensors/maze - \title Maze example - \ingroup qtsensors-examples - \brief The Maze example demonstrates the TiltSensor QML element. - \image maze.jpg - -\section1 Overview - To write a QML application that will use the TiltSensor QML sensors element you need to do the following steps: - - Import the QtSensors 5.x declarative plugin: - -\snippet ../examples/sensors/maze/Maze.qml 0 - - Add the Sensor QML elements into your qml file. - - In this example we use the TiltSensor with values based in degrees and an accuracy of 5 degree: - -\snippet ../examples/sensors/maze/Maze.qml 1 - - Starting the sensor can be done by setting the 'enabled' property to true: - -\snippet ../examples/sensors/maze/Maze.qml 2 - - To determine the walk direction of the mouse we use the following if -else statements: - -\snippet ../examples/sensors/maze/Maze.qml 3 - -*/ - diff --git a/examples/sensors/maze/maze.qmlproject b/examples/sensors/maze/maze.qmlproject deleted file mode 100644 index f9c6dc6..0000000 --- a/examples/sensors/maze/maze.qmlproject +++ /dev/null @@ -1,18 +0,0 @@ -import QmlProject 1.1 - -Project { - mainFile: "Maze.qml" - - /* Include .qml, .js, and image files from current directory and subdirectories */ - QmlFiles { - directory: "." - } - JavaScriptFiles { - directory: "." - } - ImageFiles { - directory: "./images" - } - /* List of plugin directories passed to QML runtime */ - // importPaths: [ "../exampleplugin" ] -} diff --git a/examples/sensors/maze/notions.json b/examples/sensors/maze/notions.json new file mode 100644 index 0000000..95d0519 --- /dev/null +++ b/examples/sensors/maze/notions.json @@ -0,0 +1,5 @@ +{ + "notion-file-version": 1, + "capabilities": [ + ] +} diff --git a/examples/sensors/maze/qml.pro b/examples/sensors/maze/qml.pro new file mode 100644 index 0000000..2e6dbc2 --- /dev/null +++ b/examples/sensors/maze/qml.pro @@ -0,0 +1,20 @@ +TEMPLATE = aux + +app.files = \ + info.json \ + notions.json \ + settings.json \ + Congratulation.qml \ + LabyrinthSquare.qml \ + lib.js \ + Maze.qml \ + Mouse.qml \ + icon.png \ + components \ + images + +!isEmpty(EXAMPLES_PREFIX) { + TARGET_DIR = $$EXAMPLES_PREFIX/com.nokia.mt.maze + app.path = $$TARGET_DIR + INSTALLS += app +} diff --git a/examples/sensors/maze/settings.json b/examples/sensors/maze/settings.json new file mode 100644 index 0000000..5300076 --- /dev/null +++ b/examples/sensors/maze/settings.json @@ -0,0 +1,7 @@ +{ + "version": "1.0.0", + "identifier": "com.nokia.mt.maze", + "label": "Labyrinth game using TiltSensor", + "settings": [ + ] +} diff --git a/examples/sensors/qmlqtsensors/info.json b/examples/sensors/qmlqtsensors/info.json index 797dd6f..d76c300 100644 --- a/examples/sensors/qmlqtsensors/info.json +++ b/examples/sensors/qmlqtsensors/info.json @@ -3,12 +3,12 @@ "dict": { "Category": "application", "Runtime": "qml", - "DisplayName": "QtSensors", + "DisplayName": "QML QtSensors", "Subcategory": "utility", "MainQML": "main.qml", - "Version": "1.0", - "Identifier": "com.nokia.mt.qmlqtsensors.demo", - "Summary": "QML QtSensors demo", + "Version": "1.0.0", + "Identifier": "com.nokia.mt.qmlqtsensors", + "Summary": "QML Qt Sensors demo", "Author": "Qt" } } diff --git a/examples/sensors/qmlqtsensors/notions.json b/examples/sensors/qmlqtsensors/notions.json new file mode 100644 index 0000000..95d0519 --- /dev/null +++ b/examples/sensors/qmlqtsensors/notions.json @@ -0,0 +1,5 @@ +{ + "notion-file-version": 1, + "capabilities": [ + ] +} diff --git a/examples/sensors/qmlqtsensors/qml.pro b/examples/sensors/qmlqtsensors/qml.pro new file mode 100644 index 0000000..6838887 --- /dev/null +++ b/examples/sensors/qmlqtsensors/qml.pro @@ -0,0 +1,16 @@ +TEMPLATE = aux + +app.files = \ + info.json \ + notions.json \ + settings.json \ + main.qml \ + icon.png \ + components + +!isEmpty(EXAMPLES_PREFIX) { + TARGET_DIR = $$EXAMPLES_PREFIX/com.nokia.mt.qmlqtsensors + app.path = $$TARGET_DIR + INSTALLS = app +} + diff --git a/examples/sensors/qmlqtsensors/qmlqtsensors.pro b/examples/sensors/qmlqtsensors/qmlqtsensors.pro new file mode 100644 index 0000000..a15e39e --- /dev/null +++ b/examples/sensors/qmlqtsensors/qmlqtsensors.pro @@ -0,0 +1,4 @@ +TEMPLATE = subdirs + +SUBDIRS = qml.pro + diff --git a/examples/sensors/qmlqtsensors/qmlqtsensors.qdoc b/examples/sensors/qmlqtsensors/qmlqtsensors.qdoc deleted file mode 100644 index 4e997c8..0000000 --- a/examples/sensors/qmlqtsensors/qmlqtsensors.qdoc +++ /dev/null @@ -1,68 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the documentation of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:FDL$ -** GNU Free Documentation License -** Alternatively, this file may be used under the terms of the GNU Free -** Documentation License version 1.3 as published by the Free Software -** Foundation and appearing in the file included in the packaging of -** this file. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms -** and conditions contained in a signed written agreement between you -** and Nokia. -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -/*! - \example sensors/qmlqtsensors - \title QML QtSensors example - \ingroup qtsensors-examples - \brief The QML QtSensors example demonstrates the QML sensors elements in the QtSensors 5 import. - \image qmlqtsensors.jpg - -\section1 Overview - To write a QML application that will use the QML sensors elements in the QtSensors 5 import you need to to the following steps: - - Import the QtSensors 5.x declarative plugin: - -\snippet ../examples/sensors/qmlqtsensors/main.qml 0 - - Add the Sensor QML elements into your qml file. - - In this example we use the TiltSensor: - -\snippet ../examples/sensors/qmlqtsensors/main.qml 1 - - The Tilt-, AmbientLight- and the Proximity QML element sensor have the 'enabled' property in common. - To start or stop the sensor set this property to true or false. - -\snippet ../examples/sensors/qmlqtsensors/main.qml 2 - - Reading the data can be done for each sensor type like following: - - \l {QtSensors5::TiltSensor} {TiltSensor} - -\snippet ../examples/sensors/qmlqtsensors/main.qml 3 -\snippet ../examples/sensors/qmlqtsensors/main.qml 4 - - \l {QtSensors5::AmbientLightSensor} {AmbientLightSensor} - -\snippet ../examples/sensors/qmlqtsensors/main.qml 5 - - \l {QtSensors5::ProximitySensor} {ProximitySensor} - -\snippet ../examples/sensors/qmlqtsensors/main.qml 6 -*/ - diff --git a/examples/sensors/qmlqtsensors/qmlqtsensors.qmlproject b/examples/sensors/qmlqtsensors/qmlqtsensors.qmlproject deleted file mode 100644 index 51457fa..0000000 --- a/examples/sensors/qmlqtsensors/qmlqtsensors.qmlproject +++ /dev/null @@ -1,18 +0,0 @@ -import QmlProject 1.1 - -Project { - mainFile: "main.qml" - - /* Include .qml, .js, and image files from current directory and subdirectories */ - QmlFiles { - directory: "." - } - JavaScriptFiles { - directory: "." - } - ImageFiles { - directory: "./images" - } - /* List of plugin directories passed to QML runtime */ - // importPaths: [ "../exampleplugin" ] -} diff --git a/examples/sensors/qmlqtsensors/settings.json b/examples/sensors/qmlqtsensors/settings.json new file mode 100644 index 0000000..c0d2876 --- /dev/null +++ b/examples/sensors/qmlqtsensors/settings.json @@ -0,0 +1,7 @@ +{ + "version": "1.0.0", + "identifier": "com.nokia.mt.qmlqtsensors", + "label": "QML Qt Sensors demo", + "settings": [ + ] +} diff --git a/examples/sensors/sensor_explorer/qml_app/PropertyList.qml b/examples/sensors/sensor_explorer/PropertyList.qml index ba956fb..ba956fb 100644 --- a/examples/sensors/sensor_explorer/qml_app/PropertyList.qml +++ b/examples/sensors/sensor_explorer/PropertyList.qml diff --git a/examples/sensors/sensor_explorer/qml_app/SensorList.qml b/examples/sensors/sensor_explorer/SensorList.qml index f95572b..f95572b 100644 --- a/examples/sensors/sensor_explorer/qml_app/SensorList.qml +++ b/examples/sensors/sensor_explorer/SensorList.qml diff --git a/examples/sensors/sensor_explorer/qml_app/components/ApplicationWindow.qml b/examples/sensors/sensor_explorer/components/ApplicationWindow.qml index cab5e94..cab5e94 100644 --- a/examples/sensors/sensor_explorer/qml_app/components/ApplicationWindow.qml +++ b/examples/sensors/sensor_explorer/components/ApplicationWindow.qml diff --git a/examples/sensors/sensor_explorer/qml_app/components/Button.qml b/examples/sensors/sensor_explorer/components/Button.qml index 537a8bc..537a8bc 100644 --- a/examples/sensors/sensor_explorer/qml_app/components/Button.qml +++ b/examples/sensors/sensor_explorer/components/Button.qml diff --git a/examples/sensors/sensor_explorer/qml_app/components/TextField.qml b/examples/sensors/sensor_explorer/components/TextField.qml index c1feaf2..c1feaf2 100644 --- a/examples/sensors/sensor_explorer/qml_app/components/TextField.qml +++ b/examples/sensors/sensor_explorer/components/TextField.qml diff --git a/examples/sensors/sensor_explorer/qml_app/components/images/button_background_disabled.png b/examples/sensors/sensor_explorer/components/images/button_background_disabled.png Binary files differindex 62a00b9..62a00b9 100644 --- a/examples/sensors/sensor_explorer/qml_app/components/images/button_background_disabled.png +++ b/examples/sensors/sensor_explorer/components/images/button_background_disabled.png diff --git a/examples/sensors/sensor_explorer/qml_app/components/images/button_background_normal.png b/examples/sensors/sensor_explorer/components/images/button_background_normal.png Binary files differindex 1fecad5..1fecad5 100644 --- a/examples/sensors/sensor_explorer/qml_app/components/images/button_background_normal.png +++ b/examples/sensors/sensor_explorer/components/images/button_background_normal.png diff --git a/examples/sensors/sensor_explorer/qml_app/components/images/button_background_pressed.png b/examples/sensors/sensor_explorer/components/images/button_background_pressed.png Binary files differindex 149529e..149529e 100644 --- a/examples/sensors/sensor_explorer/qml_app/components/images/button_background_pressed.png +++ b/examples/sensors/sensor_explorer/components/images/button_background_pressed.png diff --git a/examples/sensors/sensor_explorer/qml_app/components/images/textfield_background_disabled.png b/examples/sensors/sensor_explorer/components/images/textfield_background_disabled.png Binary files differindex 98bc601..98bc601 100644 --- a/examples/sensors/sensor_explorer/qml_app/components/images/textfield_background_disabled.png +++ b/examples/sensors/sensor_explorer/components/images/textfield_background_disabled.png diff --git a/examples/sensors/sensor_explorer/qml_app/components/images/textfield_background_normal.png b/examples/sensors/sensor_explorer/components/images/textfield_background_normal.png Binary files differindex b90b50c..b90b50c 100644 --- a/examples/sensors/sensor_explorer/qml_app/components/images/textfield_background_normal.png +++ b/examples/sensors/sensor_explorer/components/images/textfield_background_normal.png diff --git a/examples/sensors/sensor_explorer/qml_app/icon.png b/examples/sensors/sensor_explorer/icon.png Binary files differindex c48b609..c48b609 100755 --- a/examples/sensors/sensor_explorer/qml_app/icon.png +++ b/examples/sensors/sensor_explorer/icon.png diff --git a/examples/sensors/sensor_explorer/qml_app/images/listitem_select.png b/examples/sensors/sensor_explorer/images/listitem_select.png Binary files differindex def234f..def234f 100644 --- a/examples/sensors/sensor_explorer/qml_app/images/listitem_select.png +++ b/examples/sensors/sensor_explorer/images/listitem_select.png diff --git a/examples/sensors/sensor_explorer/qml_app/info.json b/examples/sensors/sensor_explorer/info.json index 3f1feb4..95b56fe 100644 --- a/examples/sensors/sensor_explorer/qml_app/info.json +++ b/examples/sensors/sensor_explorer/info.json @@ -3,12 +3,12 @@ "dict": { "Category": "application", "Runtime": "qml", - "DisplayName": "Sensor Explorer", + "DisplayName": "Sensors Explorer", "Subcategory": "utility", "MainQML": "main.qml", - "Version": "1.0", - "Identifier": "com.nokia.mt.sensorexplorer.demo", - "Summary": "QML Sensor Explorer demo", + "Version": "1.0.0", + "Identifier": "com.nokia.mt.sensorexplorer", + "Summary": "QML Sensors Explorer demo", "Author": "Qt" } } diff --git a/examples/sensors/sensor_explorer/qml_app/main.qml b/examples/sensors/sensor_explorer/main.qml index 8864160..8864160 100644 --- a/examples/sensors/sensor_explorer/qml_app/main.qml +++ b/examples/sensors/sensor_explorer/main.qml diff --git a/examples/sensors/sensor_explorer/notions.json b/examples/sensors/sensor_explorer/notions.json new file mode 100644 index 0000000..95d0519 --- /dev/null +++ b/examples/sensors/sensor_explorer/notions.json @@ -0,0 +1,5 @@ +{ + "notion-file-version": 1, + "capabilities": [ + ] +} diff --git a/examples/sensors/sensor_explorer/qml.pro b/examples/sensors/sensor_explorer/qml.pro new file mode 100644 index 0000000..71022cd --- /dev/null +++ b/examples/sensors/sensor_explorer/qml.pro @@ -0,0 +1,19 @@ +TEMPLATE = aux + +app.files = \ + info.json \ + notions.json \ + settings.json \ + main.qml \ + PropertyList.qml \ + SensorList.qml \ + icon.png \ + components \ + images + +!isEmpty(EXAMPLES_PREFIX) { + TARGET_DIR = $$EXAMPLES_PREFIX/com.nokia.mt.sensorexplorer + app.path = $$TARGET_DIR + INSTALLS = app +} + diff --git a/examples/sensors/sensor_explorer/qml_app/qml_app.qmlproject b/examples/sensors/sensor_explorer/qml_app/qml_app.qmlproject deleted file mode 100644 index 51457fa..0000000 --- a/examples/sensors/sensor_explorer/qml_app/qml_app.qmlproject +++ /dev/null @@ -1,18 +0,0 @@ -import QmlProject 1.1 - -Project { - mainFile: "main.qml" - - /* Include .qml, .js, and image files from current directory and subdirectories */ - QmlFiles { - directory: "." - } - JavaScriptFiles { - directory: "." - } - ImageFiles { - directory: "./images" - } - /* List of plugin directories passed to QML runtime */ - // importPaths: [ "../exampleplugin" ] -} diff --git a/examples/sensors/sensor_explorer/sensor_explorer.pro b/examples/sensors/sensor_explorer/sensor_explorer.pro index caa6680..85ba45e 100644 --- a/examples/sensors/sensor_explorer/sensor_explorer.pro +++ b/examples/sensors/sensor_explorer/sensor_explorer.pro @@ -1,4 +1,6 @@ TEMPLATE = subdirs +CONFIG += ordered -SUBDIRS += import #qml_app - +SUBDIRS = \ + import \ + qml.pro diff --git a/examples/sensors/sensor_explorer/sensor_explorer.qdoc b/examples/sensors/sensor_explorer/sensor_explorer.qdoc deleted file mode 100644 index 003429f..0000000 --- a/examples/sensors/sensor_explorer/sensor_explorer.qdoc +++ /dev/null @@ -1,95 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the documentation of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:FDL$ -** GNU Free Documentation License -** Alternatively, this file may be used under the terms of the GNU Free -** Documentation License version 1.3 as published by the Free Software -** Foundation and appearing in the file included in the packaging of -** this file. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms -** and conditions contained in a signed written agreement between you -** and Nokia. -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -/*! - \page sensor_explorer.html - \title Sensor Explorer example - \ingroup qtsensors-examples - \brief The Sensor Explorer example demonstrates how to read the meta-data of available sensors. - \image sensorexplorer.jpg - -\section1 Overview - This example contains 2 projects. - - A \l{Sensor Explorer QML Import} to make the sensors and their meta-data available to a QML application. - - A \l{Sensor Explorer QML Application} that represents the \l{Sensor Explorer QML Import} information to the user interface. -*/ - - -/*! - \example sensors/sensor_explorer/import - \title Sensor Explorer QML Import - \brief The Sensor Explorer QML import exports the QSensorExplorer, QPropertyInfo and the QSensorItem class as a QML element. - - This example creates the \e {Explorer 1.0} import. - - \sa {Sensor Explorer Example} -*/ - -/*! - \example sensors/sensor_explorer/qml_app - \title Sensor Explorer QML Application - \brief The Sensor Explorer QML application demonstrates use of the Explorer 1.0 import QML elements. - - This is a pure QML application that can be run from Qt Creator or directly using the - \c qmlscene binary. You should install the other projects before trying to run - this example or it will not be able to find its dependencies. - - \code - qmlscene main.qml - \endcode - - \sa {Sensor Explorer Example} - -\section1 Overview - To write a QML application that will use the Explorer QML element you need to do the following steps: - - Import the Explorer 1.0 declarative plugin: - - \snippet ../examples/sensors/sensor_explorer/qml_app/main.qml 0 - - Create a SensorExplorer QML item: - - \snippet ../examples/sensors/sensor_explorer/qml_app/main.qml 1 - - You can retrieve a list of all available sensors using the SensorExplorer: - - \snippet ../examples/sensors/sensor_explorer/qml_app/main.qml 2 - - To retrieve the properties of a SensorItem use: - - \snippet ../examples/sensors/sensor_explorer/qml_app/main.qml 3 - - Changing a property value can be done like: - - \snippet ../examples/sensors/sensor_explorer/qml_app/main.qml 4 - - Starting and stoping a sesnor can be done like: - - \snippet ../examples/sensors/sensor_explorer/qml_app/main.qml 5 -*/ diff --git a/examples/sensors/sensor_explorer/settings.json b/examples/sensors/sensor_explorer/settings.json new file mode 100644 index 0000000..a7db387 --- /dev/null +++ b/examples/sensors/sensor_explorer/settings.json @@ -0,0 +1,7 @@ +{ + "version": "1.0.0", + "identifier": "com.nokia.mt.sensorexplorer", + "label": "QML Sensor Explorer demo", + "settings": [ + ] +} diff --git a/examples/sensors/sensors.pro b/examples/sensors/sensors.pro index a6e1636..8f1d41b 100644 --- a/examples/sensors/sensors.pro +++ b/examples/sensors/sensors.pro @@ -4,7 +4,10 @@ SUBDIRS += \ accel \ grue \ qmlsensorgestures \ - sensor_explorer + sensor_explorer \ + maze \ + qmlqtsensors \ + shakeit !isEmpty(QT.widgets.name): SUBDIRS += \ sensorgestures diff --git a/examples/sensors/shakeit/notions.json b/examples/sensors/shakeit/notions.json new file mode 100644 index 0000000..95d0519 --- /dev/null +++ b/examples/sensors/shakeit/notions.json @@ -0,0 +1,5 @@ +{ + "notion-file-version": 1, + "capabilities": [ + ] +} diff --git a/examples/sensors/shakeit/qml.pro b/examples/sensors/shakeit/qml.pro index 440ca68..30348d1 100644 --- a/examples/sensors/shakeit/qml.pro +++ b/examples/sensors/shakeit/qml.pro @@ -1,6 +1,17 @@ TEMPLATE = aux -files.files = info.json icon.png images audio shakeit.qml +app.files = \ + info.json \ + notions.json \ + settings.json \ + shakeit.qml \ + icon.png \ + audio \ + images + +!isEmpty(EXAMPLES_PREFIX) { + TARGET_DIR = $$EXAMPLES_PREFIX/com.nokia.mt.shakeit + app.path = $$TARGET_DIR + INSTALLS = app +} -files.path = /opt/mt/applications/com.nokia.mt.shakeit -INSTALLS = files diff --git a/examples/sensors/shakeit/settings.json b/examples/sensors/shakeit/settings.json new file mode 100644 index 0000000..31fc2fb --- /dev/null +++ b/examples/sensors/shakeit/settings.json @@ -0,0 +1,7 @@ +{ + "version": "1.0.0", + "identifier": "com.nokia.mt.shakeit", + "label": "ShakeIt demonstrates the Qt5 QtSensor Gestures API", + "settings": [ + ] +} diff --git a/examples/sensors/shakeit/shakeit.qdoc b/examples/sensors/shakeit/shakeit.qdoc deleted file mode 100644 index 409077d..0000000 --- a/examples/sensors/shakeit/shakeit.qdoc +++ /dev/null @@ -1,65 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the documentation of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:FDL$ -** GNU Free Documentation License -** Alternatively, this file may be used under the terms of the GNU Free -** Documentation License version 1.3 as published by the Free Software -** Foundation and appearing in the file included in the packaging of -** this file. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms -** and conditions contained in a signed written agreement between you -** and Nokia. -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -/*! - \example sensors/shakeit - \title ShakeIt! QML Sensor Gestures Example - \ingroup qtsensors-examples - \brief The sensor gesture example demonstrates the steps for creating a QML application - that uses sensor gestures and the included shake sensor. - \image shakeit.jpg - - \section1 Overview - Writing a QML application that uses the Shake QML sensorgestures element - requires the following steps: - - Import the Sensors Declarative module. - - \snippet ../examples/sensors/shakeit/shakeit.qml 0 - - Add a SensorGesture QML element. - - \snippet ../examples/sensors/shakeit/shakeit.qml 1 - - In the SensorGesture element, specify which gesture to be used. - Note that this can be a comma separated list. Here we are only interested in one - gesture recognizer. - - \snippet ../examples/sensors/shakeit/shakeit.qml 2 - - Use the 'enabled' property to start the sensor gesture. - - \snippet ../examples/sensors/shakeit/shakeit.qml 3 - - Use the onDetected signal to do stuff. - - \snippet ../examples/sensors/shakeit/shakeit.qml 4 - - There are additional gestures to shake which are supported: - whip, twistRight, hover, cover, turnover and pickup. - -*/ diff --git a/examples/sensors/shakeit/shakeit.qmlproject b/examples/sensors/shakeit/shakeit.qmlproject deleted file mode 100644 index b3ad636..0000000 --- a/examples/sensors/shakeit/shakeit.qmlproject +++ /dev/null @@ -1,18 +0,0 @@ -import QmlProject 1.1 - -Project { - mainFile: "shakeit.qml" - - /* Include .qml, .js, and image files from current directory and subdirectories */ - QmlFiles { - directory: "." - } - JavaScriptFiles { - directory: "." - } - ImageFiles { - directory: "./images" - } - /* List of plugin directories passed to QML runtime */ - // importPaths: [ "../exampleplugin" ] -} |