diff options
author | Wolfgang Beck <wolfgang.beck@nokia.com> | 2012-02-03 14:31:49 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-14 03:52:38 +0100 |
commit | 8d2a6e427067027769e1f3c6322ae06620146396 (patch) | |
tree | 1c60262b79fc0b5b4bf70ddce7085cb18c99c5db /examples/sensors/maze | |
parent | a1ecc85fa88fdd318b379e35139c5d6486c78bd8 (diff) | |
download | qtsensors-8d2a6e427067027769e1f3c6322ae06620146396.tar.gz |
Update Examples for SDK team
Change-Id: Ib81ebf326a1ee4330a268c8d57934e3d77ea68bb
Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
Diffstat (limited to 'examples/sensors/maze')
-rw-r--r-- | examples/sensors/maze/info.json | 4 | ||||
-rw-r--r-- | examples/sensors/maze/maze.pro | 4 | ||||
-rw-r--r-- | examples/sensors/maze/maze.qdoc | 57 | ||||
-rw-r--r-- | examples/sensors/maze/maze.qmlproject | 18 | ||||
-rw-r--r-- | examples/sensors/maze/notions.json | 5 | ||||
-rw-r--r-- | examples/sensors/maze/qml.pro | 20 | ||||
-rw-r--r-- | examples/sensors/maze/settings.json | 7 |
7 files changed, 38 insertions, 77 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": [ + ] +} |