summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@digia.com>2014-09-17 13:17:42 (GMT)
committerAlex Blasche <alexander.blasche@digia.com>2014-09-18 11:51:00 (GMT)
commit1be9fc260de2e762d9e5c482505eb5db2f98f540 (patch)
tree7993c43066bf7b4357d1cad3fff8527fbc15a025 /examples
parent86c62fa1f17630d78d249bec2471f81c38bbd8df (diff)
downloadqtsensors-1be9fc260de2e762d9e5c482505eb5db2f98f540.tar.gz
Remove cube example
The example doesn't offer much example value. The accelerometer is presented by the accelbubble example too but doesn't have all the Qt3d dependencies. Cutting those dependencies is much cleaner. Task-number: QTBUG-31076 Change-Id: I074b24974cbd630d7b6ccc9eb21d8cabc96da86c Reviewed-by: Topi Reiniƶ <topi.reinio@digia.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/sensors/cubehouse/Cube.qml81
-rw-r--r--examples/sensors/cubehouse/Room.qml288
-rw-r--r--examples/sensors/cubehouse/Table.qml50
-rw-r--r--examples/sensors/cubehouse/content/ground.jpgbin3077 -> 0 bytes
-rw-r--r--examples/sensors/cubehouse/content/qtlogo.pngbin13923 -> 0 bytes
-rw-r--r--examples/sensors/cubehouse/content/roof.jpgbin3866 -> 0 bytes
-rw-r--r--examples/sensors/cubehouse/content/wall.jpgbin6195 -> 0 bytes
-rw-r--r--examples/sensors/cubehouse/cubehouse.pro15
-rw-r--r--examples/sensors/cubehouse/cubehouse.qml113
-rw-r--r--examples/sensors/cubehouse/cubehouse.qrc13
-rw-r--r--examples/sensors/cubehouse/doc/src/cubehouse.qdoc60
-rw-r--r--examples/sensors/cubehouse/main.cpp42
-rw-r--r--examples/sensors/cubehouse/mesh/table.3dsbin9149 -> 0 bytes
-rw-r--r--examples/sensors/sensors.pro3
14 files changed, 0 insertions, 665 deletions
diff --git a/examples/sensors/cubehouse/Cube.qml b/examples/sensors/cubehouse/Cube.qml
deleted file mode 100644
index 4d74cc2..0000000
--- a/examples/sensors/cubehouse/Cube.qml
+++ /dev/null
@@ -1,81 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/legal
-**
-** 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 Digia Plc 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$
-**
-****************************************************************************/
-
-import QtQuick 2.0
-import Qt3D 1.0
-import Qt3D.Shapes 1.0
-
-Cube {
- objectName: "cube"
-
- transform: [
- Rotation3D {
- angle: 45.0
- axis: Qt.vector3d(1, 0, 0)
- },
- Rotation3D {
- angle: 45.0
- axis: Qt.vector3d(0, 0, 1)
- },
- Rotation3D {
- id: yRT
- angle: 0
- axis: Qt.vector3d(0, -1, 0)
- }
- ]
-
- SequentialAnimation {
- running: true
- loops: Animation.Infinite
- NumberAnimation {
- target: yRT
- property: "angle"
- from: 0
- to: 360
- duration: 1000
- }
- }
-
- effect: Effect {
- color: "#aaca00"
- texture: "content/qtlogo.png"
- decal: true
- }
-}
diff --git a/examples/sensors/cubehouse/Room.qml b/examples/sensors/cubehouse/Room.qml
deleted file mode 100644
index c15c9ee..0000000
--- a/examples/sensors/cubehouse/Room.qml
+++ /dev/null
@@ -1,288 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/legal
-**
-** 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 Digia Plc 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$
-**
-****************************************************************************/
-
-import QtQuick 2.0
-import Qt3D 1.0
-import Qt3D.Shapes 1.0
-import "."
-
-Item3D{
- id: room
- property double scale: 1.0
- property bool yspin: false
- property bool xspin: false
- property int yrot: 0
- property int xrot: 0
- property double distanceCorrection: 3.7
-
- transform: [
- Rotation3D {
- id: yRT
- angle: 0
- axis: Qt.vector3d(0, -1, 0)
- },
- Rotation3D {
- id: xRT
- angle: 0
- axis: Qt.vector3d(-1, 0, 0)
- }
- ]
-
- SequentialAnimation {
- running: yspin
- NumberAnimation {
- target: yRT
- property: "angle"
- to: yrot
- easing.type:"Linear"
- duration: 50
- }
- onCompleted: yspin = false
- }
-
- SequentialAnimation {
- running: xspin
- NumberAnimation {
- target: xRT
- property: "angle"
- to: xrot
- easing.type:"Linear"
- duration: 50
- }
- onCompleted: xspin = false
- }
-
- function rotateY(y)
- {
- room.yrot=y;
- room.yspin = true;
- }
-
- function rotateX(x)
- {
- room.xrot=x;
- room.xspin = true;
- }
-
- Quad {
- id: frontWall
- scale: room.scale
- effect: Effect {
- texture: "content/wall.jpg"
- }
- transform: [
- Translation3D {
- translate: Qt.vector3d(0, -frontWall.scale + room.distanceCorrection, 0)
- },
- Rotation3D {
- angle: 90
- axis: Qt.vector3d(1, 0, 0)
- },
- Rotation3D {
- angle: 0
- axis: Qt.vector3d(0, 1, 0)
- },
- Rotation3D {
- angle: 0
- axis: Qt.vector3d(0, 0, 1)
- }
- ]
- }
-
- Quad {
- id: ground
- scale: room.scale
- effect: Effect {
- texture: "content/ground.jpg"
- }
- transform: [
- Translation3D {
- translate: Qt.vector3d(0, -ground.scale + room.distanceCorrection, 0)
- },
- Rotation3D {
- angle: 90
- axis: Qt.vector3d(1, 0, 0)
- },
- Rotation3D {
- angle: 90
- axis: Qt.vector3d(0, 1, 0)
- },
- Rotation3D {
- angle: 90
- axis: Qt.vector3d(0, 0, 1)
- }
- ]
- }
-
- Quad {
- id: leftWall
- scale: room.scale
- effect: Effect {
- texture: "content/wall.jpg"
- }
- transform: [
- Translation3D {
- translate: Qt.vector3d(0, -leftWall.scale + room.distanceCorrection, 0)
- },
- Rotation3D {
- angle: 0
- axis: Qt.vector3d(1, 0, 0)
- },
- Rotation3D {
- angle: 90
- axis: Qt.vector3d(0, 1, 0)
- },
- Rotation3D {
- angle: 90
- axis: Qt.vector3d(0, 0, 1)
- }
- ]
- }
-
- Quad {
- id: rightWall
- scale: room.scale
- effect: Effect {
- texture: "content/wall.jpg"
- }
- transform: [
- Translation3D {
- translate: Qt.vector3d(0, -rightWall.scale + room.distanceCorrection, 0)
- },
- Rotation3D {
- angle: 180
- axis: Qt.vector3d(1, 0, 0)
- },
- Rotation3D {
- angle: 90
- axis: Qt.vector3d(0, 1, 0)
- },
- Rotation3D {
- angle: 90
- axis: Qt.vector3d(0, 0, 1)
- }
- ]
- }
-
- Quad {
- id: roof
- scale: room.scale
- effect: Effect {
- texture: "content/roof.jpg"
- }
- transform: [
- Translation3D {
- translate: Qt.vector3d(0, -roof.scale + room.distanceCorrection, 0)
- },
- Rotation3D {
- angle: 90
- axis: Qt.vector3d(1, 0, 0)
- },
- Rotation3D {
- angle: -90
- axis: Qt.vector3d(0, 1, 0)
- },
- Rotation3D {
- angle: 90
- axis: Qt.vector3d(0, 0, 1)
- }
- ]
- }
-
- Quad {
- id: backWall
- scale: room.scale
- effect: Effect {
- texture: "content/wall.jpg"
- }
- transform: [
- Translation3D {
- translate: Qt.vector3d(0, -backWall.scale + room.distanceCorrection, 0)
- },
- Rotation3D {
- angle: -90
- axis: Qt.vector3d(1, 0, 0)
- },
- Rotation3D {
- angle: 0
- axis: Qt.vector3d(0, 1, 0)
- },
- Rotation3D {
- angle: 0
- axis: Qt.vector3d(0, 0, 1)
- }
- ]
- }
-
- Cube {
- id: cube
- scale: 0.5
-
- transform: [
- Translation3D {
- translate: Qt.vector3d(0.0, 0.0, 0.0)
- }
- ]
- }
-
- Table {
- scale: 0.025
- transform: [
- Translation3D {
- translate: Qt.vector3d(0, -7 + room.distanceCorrection, 0)
- }
- ]
- }
-
- Teapot {
- scale: 0.5
-
- effect: Effect {
- color: "#ffffaa"
- decal: true
- }
-
- transform: [
- Translation3D {
- translate: Qt.vector3d(0.0, -4.50 + room.distanceCorrection, 0.0)
- }
- ]
- }
-}
diff --git a/examples/sensors/cubehouse/Table.qml b/examples/sensors/cubehouse/Table.qml
deleted file mode 100644
index 61c474c..0000000
--- a/examples/sensors/cubehouse/Table.qml
+++ /dev/null
@@ -1,50 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/legal
-**
-** 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 Digia Plc 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$
-**
-****************************************************************************/
-
-import QtQuick 2.0
-import Qt3D 1.0
-import Qt3D.Shapes 1.0
-import "."
-
-Item3D {
- id: table
- scale: 1
- mesh: Mesh { source: "mesh/table.3ds" }
-}
diff --git a/examples/sensors/cubehouse/content/ground.jpg b/examples/sensors/cubehouse/content/ground.jpg
deleted file mode 100644
index 2664b99..0000000
--- a/examples/sensors/cubehouse/content/ground.jpg
+++ /dev/null
Binary files differ
diff --git a/examples/sensors/cubehouse/content/qtlogo.png b/examples/sensors/cubehouse/content/qtlogo.png
deleted file mode 100644
index 7d3e97e..0000000
--- a/examples/sensors/cubehouse/content/qtlogo.png
+++ /dev/null
Binary files differ
diff --git a/examples/sensors/cubehouse/content/roof.jpg b/examples/sensors/cubehouse/content/roof.jpg
deleted file mode 100644
index 53a35d6..0000000
--- a/examples/sensors/cubehouse/content/roof.jpg
+++ /dev/null
Binary files differ
diff --git a/examples/sensors/cubehouse/content/wall.jpg b/examples/sensors/cubehouse/content/wall.jpg
deleted file mode 100644
index 7c56e23..0000000
--- a/examples/sensors/cubehouse/content/wall.jpg
+++ /dev/null
Binary files differ
diff --git a/examples/sensors/cubehouse/cubehouse.pro b/examples/sensors/cubehouse/cubehouse.pro
deleted file mode 100644
index 18191d3..0000000
--- a/examples/sensors/cubehouse/cubehouse.pro
+++ /dev/null
@@ -1,15 +0,0 @@
-TEMPLATE = app
-TARGET = cubehouse
-QT += quick
-SOURCES = main.cpp
-
-OTHER_FILES = \
- $$files(*.qml) \
- content \
- mesh
-
-target.path = $$[QT_INSTALL_EXAMPLES]/sensors/cubehouse
-INSTALLS += target
-
-RESOURCES += \
- cubehouse.qrc
diff --git a/examples/sensors/cubehouse/cubehouse.qml b/examples/sensors/cubehouse/cubehouse.qml
deleted file mode 100644
index ee2774a..0000000
--- a/examples/sensors/cubehouse/cubehouse.qml
+++ /dev/null
@@ -1,113 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/legal
-**
-** 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 Digia Plc 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$
-**
-****************************************************************************/
-
-import QtQuick 2.0
-import Qt3D 1.0
-import Qt3D.Shapes 1.0
-
-//! [0]
-import QtSensors 5.0
-//! [0]
-
-import "."
-
-Item {
- id: mainWindow
- width: 320
- height: 480
-
- Viewport {
- id: view
- anchors.top: parent.top
- width: parent.width
- height: parent.height
- fillColor: "darkblue"
- objectName: "cube viewport"
- camera: Camera { eye: Qt.vector3d(0, 3, 1.6 * room.scale - 4)}
-
- Room{
- id: room
- scale: 7.0
- }
-
- function rotateY(y)
- {
- room.rotateY(y);
- }
-
- function rotateX(x)
- {
- room.rotateX(x);
- }
- }
-
-//! [1]
- Accelerometer {
- id: accel
- active: true
- dataRate: 20
-//! [1]
-
-//! [2]
- property double pitch: 0.0
- property double roll: 0.0
-//! [2]
-
-//! [3]
- onReadingChanged: {
- pitch = -(Math.atan2(reading.x, Math.sqrt(reading.y * reading.y + reading.z * reading.z)) * 180) / Math.PI;
- roll = (Math.atan2(reading.y, Math.sqrt(reading.x * reading.x + reading.z * reading.z)) * 180) / Math.PI;
- }
- }
-//! [3]
-
-
- //Timer to read out the x and y rotation of the TiltSensor
-//! [4]
- Timer {
- interval: 50; running: true; repeat: true
-
- onTriggered: {
- view.rotateY(accel.pitch);
- view.rotateX(accel.roll);
- }
- }
-//! [4]
-}
diff --git a/examples/sensors/cubehouse/cubehouse.qrc b/examples/sensors/cubehouse/cubehouse.qrc
deleted file mode 100644
index 144151b..0000000
--- a/examples/sensors/cubehouse/cubehouse.qrc
+++ /dev/null
@@ -1,13 +0,0 @@
-<RCC>
- <qresource prefix="/">
- <file>Cube.qml</file>
- <file>cubehouse.qml</file>
- <file>Room.qml</file>
- <file>Table.qml</file>
- <file>content/ground.jpg</file>
- <file>content/wall.jpg</file>
- <file>content/roof.jpg</file>
- <file>content/qtlogo.png</file>
- <file>mesh/table.3ds</file>
- </qresource>
-</RCC>
diff --git a/examples/sensors/cubehouse/doc/src/cubehouse.qdoc b/examples/sensors/cubehouse/doc/src/cubehouse.qdoc
deleted file mode 100644
index e286e32..0000000
--- a/examples/sensors/cubehouse/doc/src/cubehouse.qdoc
+++ /dev/null
@@ -1,60 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/legal
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:FDL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia. For licensing terms and
-** conditions see http://qt.digia.com/licensing. For further information
-** use the contact form at http://qt.digia.com/contact-us.
-**
-** GNU Free Documentation License Usage
-** Alternatively, this file may be used under the terms of the GNU Free
-** Documentation License version 1.3 as published by the Free Software
-** Foundation and appearing in the file included in the packaging of
-** this file. Please review the following information to ensure
-** the GNU Free Documentation License version 1.3 requirements
-** will be met: http://www.gnu.org/copyleft/fdl.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*!
- \example cubehouse
- \title Qt Sensors - Cube House QML Accelerometer example
- \ingroup qtsensors-examples
- \brief The Cube House example demonstrates the use of the accelerometer to drive a camera to create a pseudo-3D effect.
- \image cubehouse.png
-
-\section1 Overview
- To write a QML application that will use the QML Accelerometer type from the QtSensors import you need to to the following steps:
-
- Import the QtSensors declarative plugin:
-
-\snippet cubehouse/cubehouse.qml 0
-
- Add the Accelerometer QML types into your qml file.
-
-\snippet cubehouse/cubehouse.qml 1
-
- In additional two properties are added to save the calculated pitch and roll values:
-
-\snippet cubehouse/cubehouse.qml 2
-
- Reading out the Accelerometer data can be done by implementing the 'onReadingChanged' slot and
- accessing the 'reading' property from the Accelerometer type:
-
-\snippet cubehouse/cubehouse.qml 3
-
- By using a timer the view can be rotated using the pitch and roll properties from the Accelerometer type:
-
-\snippet cubehouse/cubehouse.qml 4
-
-*/
-
diff --git a/examples/sensors/cubehouse/main.cpp b/examples/sensors/cubehouse/main.cpp
deleted file mode 100644
index 95d169f..0000000
--- a/examples/sensors/cubehouse/main.cpp
+++ /dev/null
@@ -1,42 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/legal
-**
-** 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 Digia Plc 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(cubehouse)
diff --git a/examples/sensors/cubehouse/mesh/table.3ds b/examples/sensors/cubehouse/mesh/table.3ds
deleted file mode 100644
index 3e576bd..0000000
--- a/examples/sensors/cubehouse/mesh/table.3ds
+++ /dev/null
Binary files differ
diff --git a/examples/sensors/sensors.pro b/examples/sensors/sensors.pro
index 20537a8..953071c 100644
--- a/examples/sensors/sensors.pro
+++ b/examples/sensors/sensors.pro
@@ -17,7 +17,4 @@ qtHaveModule(quick) {
qtHaveModule(widgets): SUBDIRS += \
sensorgestures
-qtHaveModule(3d): SUBDIRS += \
- cubehouse
-
OTHER_FILES = stub.h