summaryrefslogtreecommitdiffstats
path: root/examples/sensors/accelbubble
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/accelbubble
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/accelbubble')
-rw-r--r--examples/sensors/accelbubble/accelbubble.pro8
-rw-r--r--examples/sensors/accelbubble/accelbubble.qml2
-rw-r--r--examples/sensors/accelbubble/main.cpp42
3 files changed, 51 insertions, 1 deletions
diff --git a/examples/sensors/accelbubble/accelbubble.pro b/examples/sensors/accelbubble/accelbubble.pro
index f4e0ecca..e8e5976b 100644
--- a/examples/sensors/accelbubble/accelbubble.pro
+++ b/examples/sensors/accelbubble/accelbubble.pro
@@ -1,4 +1,7 @@
-TEMPLATE = aux
+TEMPLATE = app
+TARGET = accelbubble
+QT += quick
+SOURCES = main.cpp
app.files = \
$$files(*.qml) \
@@ -6,3 +9,6 @@ app.files = \
content \
images
+target.path = $$[QT_INSTALL_EXAMPLES]/sensors/accelbubble
+app.path = $$[QT_INSTALL_EXAMPLES]/sensors/accelbubble
+INSTALLS += target app
diff --git a/examples/sensors/accelbubble/accelbubble.qml b/examples/sensors/accelbubble/accelbubble.qml
index a212b595..9fe289d3 100644
--- a/examples/sensors/accelbubble/accelbubble.qml
+++ b/examples/sensors/accelbubble/accelbubble.qml
@@ -46,6 +46,8 @@ import QtMobility.sensors 1.2
Rectangle {
id: mainPage
+ width: 320
+ height: 480
//! [1]
Accelerometer {
diff --git a/examples/sensors/accelbubble/main.cpp b/examples/sensors/accelbubble/main.cpp
new file mode 100644
index 00000000..9e939424
--- /dev/null
+++ b/examples/sensors/accelbubble/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(accelbubble)