summaryrefslogtreecommitdiffstats
path: root/examples/sensors/maze/Maze.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/sensors/maze/Maze.qml')
-rw-r--r--examples/sensors/maze/Maze.qml27
1 files changed, 11 insertions, 16 deletions
diff --git a/examples/sensors/maze/Maze.qml b/examples/sensors/maze/Maze.qml
index 90c22a6f..d8c37dea 100644
--- a/examples/sensors/maze/Maze.qml
+++ b/examples/sensors/maze/Maze.qml
@@ -38,16 +38,6 @@
**
****************************************************************************/
-//Import the declarative plugins
-import QtQuick 2.0
-
-//! [0]
-import QtSensors 5.0
-//! [0]
-
-//Import the javascript functions for this game
-import "lib.js" as Lib
-
/* Layout
mainWnd
/
@@ -78,14 +68,19 @@ import "lib.js" as Lib
------------------------------
*/
+//Import the declarative plugins
+import QtQuick 2.0
+import "components"
+
+//! [0]
+import QtSensors 5.0
+//! [0]
+
+//Import the javascript functions for this game
+import "lib.js" as Lib
-Rectangle {
+ApplicationWindow {
id: mainWnd
- x: 0
- y: 0
- width: 320
- height: 480
- color: "#ececec"
property Mouse mouseCtrl;
property LabyrinthSquare cheeseSquare;