summaryrefslogtreecommitdiffstats
path: root/examples/sensors/qmlsensorgestures
diff options
context:
space:
mode:
authorLincoln Ramsay <lincoln.ramsay@nokia.com>2012-06-19 16:59:47 +1000
committerQt by Nokia <qt-info@nokia.com>2012-06-20 03:16:25 +0200
commit66e6d660edabd9c89517b7d3e86ebad381c0c741 (patch)
tree4b616c180987a4f67228b6b9425d7f8f8fa469e2 /examples/sensors/qmlsensorgestures
parentda431f39aa998b2b2829f146e705a9ef09310a3c (diff)
Get all the examples building and running on Desktop.
Build the required C++ stubs for each example and deploy all the files so that the examples are runnable. Change-Id: I03d23cb37e1c484110a58934a9b0aa550d6915a6 Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
Diffstat (limited to 'examples/sensors/qmlsensorgestures')
-rw-r--r--examples/sensors/qmlsensorgestures/main.cpp42
-rw-r--r--examples/sensors/qmlsensorgestures/qml.pro8
-rw-r--r--examples/sensors/qmlsensorgestures/qmlsensorgestures.qml1
3 files changed, 49 insertions, 2 deletions
diff --git a/examples/sensors/qmlsensorgestures/main.cpp b/examples/sensors/qmlsensorgestures/main.cpp
new file mode 100644
index 00000000..59984033
--- /dev/null
+++ b/examples/sensors/qmlsensorgestures/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(qmlsensorgestures)
diff --git a/examples/sensors/qmlsensorgestures/qml.pro b/examples/sensors/qmlsensorgestures/qml.pro
index 3fd97ef5..7c80bd0f 100644
--- a/examples/sensors/qmlsensorgestures/qml.pro
+++ b/examples/sensors/qmlsensorgestures/qml.pro
@@ -1,6 +1,12 @@
-TEMPLATE = aux
+TEMPLATE = app
+TARGET = qmlsensorgestures
+QT += quick
+SOURCES = main.cpp
app.files = \
$$files(*.qml) \
icon.png
+target.path = $$[QT_INSTALL_EXAMPLES]/sensors/qmlsensorgestures
+app.path = $$[QT_INSTALL_EXAMPLES]/sensors/qmlsensorgestures
+INSTALLS += target app
diff --git a/examples/sensors/qmlsensorgestures/qmlsensorgestures.qml b/examples/sensors/qmlsensorgestures/qmlsensorgestures.qml
index 5a7a4e20..8dd2c7ab 100644
--- a/examples/sensors/qmlsensorgestures/qmlsensorgestures.qml
+++ b/examples/sensors/qmlsensorgestures/qmlsensorgestures.qml
@@ -77,7 +77,6 @@ Rectangle {
id: viewArea
width: 320
height: 460
- y: 20
color: '#d6d6d6'
GestureList {