diff options
Diffstat (limited to 'examples/sensors/shakeit')
-rw-r--r-- | examples/sensors/shakeit/notions.json | 5 | ||||
-rw-r--r-- | examples/sensors/shakeit/qml.pro | 17 | ||||
-rw-r--r-- | examples/sensors/shakeit/settings.json | 7 | ||||
-rw-r--r-- | examples/sensors/shakeit/shakeit.qdoc | 65 | ||||
-rw-r--r-- | examples/sensors/shakeit/shakeit.qmlproject | 18 |
5 files changed, 26 insertions, 86 deletions
diff --git a/examples/sensors/shakeit/notions.json b/examples/sensors/shakeit/notions.json new file mode 100644 index 00000000..95d05191 --- /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 440ca687..30348d1a 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 00000000..31fc2fb3 --- /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 409077d8..00000000 --- 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 b3ad6364..00000000 --- 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" ] -} |