summaryrefslogtreecommitdiffstats
path: root/examples/sensors/shakeit
diff options
context:
space:
mode:
Diffstat (limited to 'examples/sensors/shakeit')
-rw-r--r--examples/sensors/shakeit/main.cpp42
-rw-r--r--examples/sensors/shakeit/qml.pro8
-rw-r--r--examples/sensors/shakeit/shakeit.pro15
-rw-r--r--examples/sensors/shakeit/shakeit.qml2
4 files changed, 57 insertions, 10 deletions
diff --git a/examples/sensors/shakeit/main.cpp b/examples/sensors/shakeit/main.cpp
new file mode 100644
index 00000000..9a4aef36
--- /dev/null
+++ b/examples/sensors/shakeit/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(shakeit)
diff --git a/examples/sensors/shakeit/qml.pro b/examples/sensors/shakeit/qml.pro
deleted file mode 100644
index 1c7cc61c..00000000
--- a/examples/sensors/shakeit/qml.pro
+++ /dev/null
@@ -1,8 +0,0 @@
-TEMPLATE = aux
-
-app.files = \
- $$files(*.qml) \
- icon.png \
- audio \
- content
-
diff --git a/examples/sensors/shakeit/shakeit.pro b/examples/sensors/shakeit/shakeit.pro
index 6dc685b9..9f963909 100644
--- a/examples/sensors/shakeit/shakeit.pro
+++ b/examples/sensors/shakeit/shakeit.pro
@@ -1,3 +1,14 @@
-TEMPLATE = subdirs
+TEMPLATE = app
+TARGET = shakeit
+QT += quick
+SOURCES = main.cpp
-SUBDIRS = qml.pro
+app.files = \
+ $$files(*.qml) \
+ icon.png \
+ audio \
+ content
+
+target.path = $$[QT_INSTALL_EXAMPLES]/sensors/shakeit
+app.path = $$[QT_INSTALL_EXAMPLES]/sensors/shakeit
+INSTALLS += target app
diff --git a/examples/sensors/shakeit/shakeit.qml b/examples/sensors/shakeit/shakeit.qml
index 3b3b1f5c..556d35f5 100644
--- a/examples/sensors/shakeit/shakeit.qml
+++ b/examples/sensors/shakeit/shakeit.qml
@@ -49,6 +49,8 @@ import QtMultimedia 5.0
Rectangle {
id: window
+ width: 320
+ height: 480
state: "default"