summaryrefslogtreecommitdiffstats
path: root/examples/sensors/maze
diff options
context:
space:
mode:
Diffstat (limited to 'examples/sensors/maze')
-rw-r--r--examples/sensors/maze/main.cpp42
-rw-r--r--examples/sensors/maze/maze.pro15
-rw-r--r--examples/sensors/maze/maze.qml2
-rw-r--r--examples/sensors/maze/qml.pro9
4 files changed, 56 insertions, 12 deletions
diff --git a/examples/sensors/maze/main.cpp b/examples/sensors/maze/main.cpp
new file mode 100644
index 00000000..052cc7c8
--- /dev/null
+++ b/examples/sensors/maze/main.cpp
@@ -0,0 +1,42 @@
+/****************************************************************************
+**
+** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
+** Contact: http://www.qt-project.org/
+**
+** This file is part of the QtSensors module of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:BSD$
+** You may use this file under the terms of the BSD license as follows:
+**
+** "Redistribution and use in source and binary forms, with or without
+** modification, are permitted provided that the following conditions are
+** met:
+** * Redistributions of source code must retain the above copyright
+** notice, this list of conditions and the following disclaimer.
+** * Redistributions in binary form must reproduce the above copyright
+** notice, this list of conditions and the following disclaimer in
+** the documentation and/or other materials provided with the
+** distribution.
+** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
+** the names of its contributors may be used to endorse or promote
+** products derived from this software without specific prior written
+** permission.
+**
+** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+#include "../stub.h"
+SENSORS_EXAMPLE_MAIN(maze)
diff --git a/examples/sensors/maze/maze.pro b/examples/sensors/maze/maze.pro
index a15e39ef..f7d5a2aa 100644
--- a/examples/sensors/maze/maze.pro
+++ b/examples/sensors/maze/maze.pro
@@ -1,4 +1,15 @@
-TEMPLATE = subdirs
+TEMPLATE = app
+TARGET = maze
+QT += quick
+SOURCES = main.cpp
-SUBDIRS = qml.pro
+app.files = \
+ components \
+ $$files(*.qml) \
+ $$files(*.js) \
+ icon.png \
+ content
+target.path = $$[QT_INSTALL_EXAMPLES]/sensors/maze
+app.path = $$[QT_INSTALL_EXAMPLES]/sensors/maze
+INSTALLS += target app
diff --git a/examples/sensors/maze/maze.qml b/examples/sensors/maze/maze.qml
index 40c1d1dd..ceaf81a0 100644
--- a/examples/sensors/maze/maze.qml
+++ b/examples/sensors/maze/maze.qml
@@ -91,7 +91,7 @@ ApplicationWindow {
Rectangle {
id: gameRect
x: (mainWnd.width - width) / 2
- y: 25
+ y: 5
width: Lib.dimension * Lib.cellDimension
height: Lib.dimension * Lib.cellDimension
color: "transparent"
diff --git a/examples/sensors/maze/qml.pro b/examples/sensors/maze/qml.pro
deleted file mode 100644
index 463e944d..00000000
--- a/examples/sensors/maze/qml.pro
+++ /dev/null
@@ -1,9 +0,0 @@
-TEMPLATE = aux
-
-app.files = \
- components \
- $$files(*.qml) \
- $$files(*.js) \
- icon.png \
- content
-