summaryrefslogtreecommitdiffstats
path: root/doc/src/examples
diff options
context:
space:
mode:
Diffstat (limited to 'doc/src/examples')
-rw-r--r--doc/src/examples/accelbubble.qdoc54
-rw-r--r--doc/src/examples/cubehouse.qdoc60
-rw-r--r--doc/src/examples/grue.qdoc162
-rw-r--r--doc/src/examples/maze.qdoc67
-rw-r--r--doc/src/examples/qmlqtsensors.qdoc70
-rw-r--r--doc/src/examples/qmlsensorgtestures.qdoc63
-rw-r--r--doc/src/examples/sensor_explorer.qdoc91
-rw-r--r--doc/src/examples/sensorgestures.qdoc67
-rw-r--r--doc/src/examples/sensors.qdoc40
-rw-r--r--doc/src/examples/shakeit.qdoc64
10 files changed, 0 insertions, 738 deletions
diff --git a/doc/src/examples/accelbubble.qdoc b/doc/src/examples/accelbubble.qdoc
deleted file mode 100644
index 9199b17d..00000000
--- a/doc/src/examples/accelbubble.qdoc
+++ /dev/null
@@ -1,54 +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 sensors/accelbubble
- \title Qt Sensors - Accel Bubble
- \brief The AccelBubble example demonstrates the Legacy Accelerometer QML type.
- \ingroup qtsensors-examples
-
-\section1 Overview
- Writing a QML application that uses the Legacy Accelerometer QML sensors type requires the following steps:
-
- Import the Legacy Sensors Declarative module.
-
-\snippet ../examples/sensors/accelbubble/accelbubble.qml 0
-
- Add an Accelerometer QML type.
-
-\snippet ../examples/sensors/accelbubble/accelbubble.qml 1
-
- Use the 'active' property to start the sensor
-
-\snippet ../examples/sensors/accelbubble/accelbubble.qml 2
-
- Move the bubble according to a factor of the accelerator sensor
-
-\snippet ../examples/sensors/accelbubble/accelbubble.qml 3
-
-*/
-
diff --git a/doc/src/examples/cubehouse.qdoc b/doc/src/examples/cubehouse.qdoc
deleted file mode 100644
index 37d5fe28..00000000
--- a/doc/src/examples/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 sensors/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 ../examples/sensors/cubehouse/cubehouse.qml 0
-
- Add the Accelerometer QML types into your qml file.
-
-\snippet ../examples/sensors/cubehouse/cubehouse.qml 1
-
- In additional two properties are added to save the calculated pitch and roll values:
-
-\snippet ../examples/sensors/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 ../examples/sensors/cubehouse/cubehouse.qml 3
-
- By using a timer the view can be rotated using the pitch and roll properties from the Accelerometer type:
-
-\snippet ../examples/sensors/cubehouse/cubehouse.qml 4
-
-*/
-
diff --git a/doc/src/examples/grue.qdoc b/doc/src/examples/grue.qdoc
deleted file mode 100644
index 1eed941c..00000000
--- a/doc/src/examples/grue.qdoc
+++ /dev/null
@@ -1,162 +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$
-**
-****************************************************************************/
-
-/*!
- \page gruesensorexample.html
- \title Qt Sensors - Grue Sensor Example
- \brief The Qt Sensors - Grue sensor example demonstrates all the steps from creating a new sensor to using it.
- \ingroup qtsensors-examples
-
- The Qt Sensors - Grue sensor example demonstrates all the steps from creating a new sensor to using it.
-
- The sensor definition is placed in a library where client apps can access it. The actual implementation
- lives in a plugin.
-
- \list
- \li \l{Grue Sensor Definition}
- \li \l{Grue Sensor Implementation}
- \endlist
-
- The sensor can now be used by a C++ application, even if the application does not have access to the
- definition.
-
- \list
- \li \l{Grue Sensor Console Application}
- \endlist
-
- To make the sensor available to a QML application an import must be created.
-
- \list
- \li \l{Grue Sensor QML Import}
- \li \l{Grue Sensor QML Application}
- \endlist
-*/
-
-/*!
- \example sensors/grue/lib
- \title Grue Sensor Definition
- \brief The Grue sensor is defined in a library so that applications can use it.
-
- First up is the sensor type. This is the interface for sensors that report
- on your likelihood of being eaten by a Grue. Such sensors are very important
- to adventurers, particularly if they are going into dark places as this is
- where Grues live.
-
- The interface is a simple one. It provides only 1 piece of information, your
- chance of being eaten. For the details on how this is property should be
- interpreted please see the documentation in gruesensor.cpp.
-
- This example was created using the make_sensor.pl script which can be found in
- src/sensors. As such, it contains some generated code that defines the convenience
- classes GrueFilter and GrueSensor.
-
- \sa {Qt Sensors - Grue Sensor Example}
-*/
-
-/*!
- \example sensors/grue/plugin
- \title Grue Sensor Implementation
- \brief The Grue sensor implementation lives in a plugin that is loaded by the Qt Sensors library.
-
- The Grue sensor needs a backend before it can be used. The backend provided
- is rather basic and it relies on some kind of light sensor to work but it
- gets the job done. If new hardware that can detect the actual presence of Grues
- becomes available a backend could be created that supports this hardware and
- applications using the Grue sensor would be able to use it without any changes.
-
- There are a few mandatory parts to a backend. They are the start and stop methods
- and the setReading call. The start and stop methods are used to start and stop
- any underlying hardware. In the case of this backend they start and stop a
- light sensor. In the start method, the backend should be sure to call the
- sensorStopped() or sensorBusy() methods if it cannot start.
-
- \snippet ../examples/sensors/grue/plugin/gruesensorimpl.cpp start
-
- The setReading method is needed so that the sensors library knows where the
- readings are coming from. This backend has a local copy of the reading so
- it passes a pointer to the function.
-
- \snippet ../examples/sensors/grue/plugin/gruesensorimpl.cpp setReading
-
- However it is also possible to pass null to the setReading method in which
- case the sensors library will create an instance and return a pointer.
-
- \code
- // Create a reading instance for us to use
- m_reading = setReading<GrueSensorReading>(0);
- \endcode
-
- The Grue sensor backend also supplies some metadata.
-
- The backend checks 2 things, how dark it is and how long you have been in the dark.
- It uses the readingChanged() signal to know when to check the light sensor's
- value. Once it is dark, it uses a timer to increase your chance of being eaten.
-
- The Grue sensor backend is delivered as a plugin. The plugin has a factory object
- that registers the types available and does the actual instantiation of the backend.
-
- \sa {Qt Sensors - Grue Sensor Example}
-*/
-
-/*!
- \example sensors/grue/console_app
- \title Grue Sensor Console Application
- \brief The Grue sensor console application demonstrates use of the Grue sensor.
-
- This is a simple commandline application. It demonstrates how to use the generic
- access feature of Qt Sensors to avoid a link-time dependency on the Grue Sensor
- library.
-
- \sa {Qt Sensors - Grue Sensor Example}
-*/
-
-/*!
- \example sensors/grue/import
- \title Grue Sensor QML Import
- \brief The Grue sensor QML import exports the GrueSensor class as a QML type.
-
- This example creates the \e {Grue 1.0} import.
-
- \sa {Qt Sensors - Grue Sensor Example}
-*/
-
-/*!
- \example sensors/grue
- \title Grue Sensor QML Application
- \brief The Grue sensor QML application demonstrates use of the GrueSensor QML type.
-
- This is a pure QML application that can be run from Qt Creator or directly using the
- \c qmlscene binary. You should install the other projects before trying to run
- this example or it will not be able to find its dependencies.
-
- \code
- qmlscene grue.qml
- \endcode
-
- \sa {Qt Sensors - Grue Sensor Example}
-*/
-
diff --git a/doc/src/examples/maze.qdoc b/doc/src/examples/maze.qdoc
deleted file mode 100644
index e1807289..00000000
--- a/doc/src/examples/maze.qdoc
+++ /dev/null
@@ -1,67 +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 sensors/maze
- \title Qt Sensors - Maze QML Example
- \ingroup qtsensors-examples
- \image maze.png
-
- \section2 Maze in QML
- \brief The Maze example demonstrates the TiltSensor QML type.
-
-
- To write a QML application that will use the TiltSensor QML sensors type you need to do the following steps:
-
- Import the QtSensors 5.x declarative plugin:
-
- \snippet ../examples/sensors/maze/maze.qml 0
-
- Add the Sensor QML types into your qml file.
-
- In this example we use the TiltSensor with values based in degrees and an accuracy of 5 degree:
-
- \snippet ../examples/sensors/maze/maze.qml 1
-
- Starting the sensor can be done by setting the 'enabled' property to true:
-
- \snippet ../examples/sensors/maze/maze.qml 2
-
- The mouse should move by a factor of the tilt value:
-
- \snippet ../examples/sensors/maze/maze.qml 3
-
- The walk direction of the mouse takes into account some collision detection:
-
- \snippet ../examples/sensors/maze/maze.qml 4
-
- The rotation of the mouse image is determined according to the angle that the mouse is moving.
-
- \snippet ../examples/sensors/maze/Mouse.qml 0
-
-*/
-
diff --git a/doc/src/examples/qmlqtsensors.qdoc b/doc/src/examples/qmlqtsensors.qdoc
deleted file mode 100644
index ed6c99f4..00000000
--- a/doc/src/examples/qmlqtsensors.qdoc
+++ /dev/null
@@ -1,70 +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 sensors/qmlqtsensors
- \title Qt Sensors - QML example
- \ingroup qtsensors-examples
- \image qmlqtsensors.png
-
- \section2 Qt Sensors in QML
- \brief The QtSensors - QML example demonstrates the QML sensors types in the QtSensors 5 import.
-
-
- To write a QML application that will use the QML sensors types in the QtSensors 5 import you need to to the following steps:
-
- Import the QtSensors 5.x declarative plugin:
-
- \snippet ../examples/sensors/qmlqtsensors/qmlqtsensors.qml 0
-
- Add the Sensor QML types into your qml file.
-
- In this example we use the TiltSensor:
-
- \snippet ../examples/sensors/qmlqtsensors/qmlqtsensors.qml 1
-
- The Tilt-, AmbientLight- and the Proximity QML sensor types have the 'enabled' property in common.
- To start or stop the sensor set this property to true or false.
-
- \snippet ../examples/sensors/qmlqtsensors/qmlqtsensors.qml 2
-
- Reading the data can be done for each sensor type like following:
-
- \l {QtSensors::TiltSensor} {TiltSensor}
-
- \snippet ../examples/sensors/qmlqtsensors/qmlqtsensors.qml 3
- \snippet ../examples/sensors/qmlqtsensors/qmlqtsensors.qml 4
-
- \l {QtSensors::AmbientLightSensor} {AmbientLightSensor}
-
- \snippet ../examples/sensors/qmlqtsensors/qmlqtsensors.qml 5
-
- \l {QtSensors::ProximitySensor} {ProximitySensor}
-
- \snippet ../examples/sensors/qmlqtsensors/qmlqtsensors.qml 6
-*/
-
diff --git a/doc/src/examples/qmlsensorgtestures.qdoc b/doc/src/examples/qmlsensorgtestures.qdoc
deleted file mode 100644
index 74e65ae2..00000000
--- a/doc/src/examples/qmlsensorgtestures.qdoc
+++ /dev/null
@@ -1,63 +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 sensors/qmlsensorgestures
- \title Qt Sensors - SensorGesture QML Type example
- \ingroup qtsensors-examples
-
- \brief This example demonstrates use of the SensorGesture QML type.
-
-\section1 Overview
- To write a QML application that will use the gesture plugin you need to to the following steps:
-
- Import the QtSensors 5.x declarative plugin:
-
-\snippet ../examples/sensors/qmlsensorgestures/GestureView.qml 0
-
- Add the SensorGesture QML type into your qml file.
-
-\snippet ../examples/sensors/qmlsensorgestures/GestureView.qml 1
-
- Each SensorGesture QML type contains a property called gestures.
-
- In this example an alias 'gestureid' for this property is used.
-
-\snippet ../examples/sensors/qmlsensorgestures/GestureView.qml 2
-
- By using this alias property you define which gestures should be used:
-
-\snippet ../examples/sensors/qmlsensorgestures/qmlsensorgestures.qml 3
-
- A list of all available gestures can be created by calling the 'availableGestures' property:
-
-\snippet ../examples/sensors/qmlsensorgestures/GestureList.qml 4
-
-\sa {Qt Sensors - ShakeIt QML Example}
-\sa {Qt Sensor Gestures}
-*/
-
diff --git a/doc/src/examples/sensor_explorer.qdoc b/doc/src/examples/sensor_explorer.qdoc
deleted file mode 100644
index 92879c2d..00000000
--- a/doc/src/examples/sensor_explorer.qdoc
+++ /dev/null
@@ -1,91 +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 sensors/sensor_explorer
- \title Qt Sensors - Explorer QML example
- \ingroup qtsensors-examples
-
- \section2 Sensor Explorer in QML
- \brief The Sensor Explorer example demonstrates how to read the meta-data of available sensors.
-
-
- This example is divided into two parts:
-
- \list
- \li A \l{Sensor Explorer QML Import}{C++ plug-in} that provides QML alternatives for QSensorExplorer, QPropertyInfo and the QSensorItem classes.
- \li A QML Application that uses the QML alternatives to read the sensors meta-data and present it.
- \endlist
-
-
- This is a pure QML application that can be run from Qt Creator or directly using the
- \c qmlscene binary. You should install the other C++ plug-in before trying to run
- this example, otherwise it will not find its dependencies.
-
- \code
- qmlscene main.qml
- \endcode
-
- To write a QML application that will use the Explorer QML type you need to do the following steps:
-
- Import the Explorer 1.0 declarative plugin:
-
- \snippet ../examples/sensors/sensor_explorer/sensor_explorer.qml 0
-
- Create a SensorExplorer QML item:
-
- \snippet ../examples/sensors/sensor_explorer/sensor_explorer.qml 1
-
- You can retrieve a list of all available sensors using the SensorExplorer:
-
- \snippet ../examples/sensors/sensor_explorer/sensor_explorer.qml 2
-
- To retrieve the properties of a SensorItem use:
-
- \snippet ../examples/sensors/sensor_explorer/sensor_explorer.qml 3
-
- Changing a property value can be done like:
-
- \snippet ../examples/sensors/sensor_explorer/sensor_explorer.qml 4
-
- Starting and stopping a sensor can be done like:
-
- \snippet ../examples/sensors/sensor_explorer/sensor_explorer.qml 5
-*/
-
-/*!
- \example sensors/sensor_explorer/import
- \title Sensor Explorer QML Import
-
- \section2 Sensor Explorer Declarative Plugin
- \brief The Sensor Explorer QML import exports the QSensorExplorer, QPropertyInfo and the QSensorItem class as a QML type.
-
- This example creates the \e {Explorer 1.0} import.
-
- \sa {Qt Sensors - Explorer QML example}
-*/
-
diff --git a/doc/src/examples/sensorgestures.qdoc b/doc/src/examples/sensorgestures.qdoc
deleted file mode 100644
index d34f383d..00000000
--- a/doc/src/examples/sensorgestures.qdoc
+++ /dev/null
@@ -1,67 +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$
-**
-****************************************************************************/
-
-/*!
- \page sensorgestureexample.html
- \title Qt Sensors - C++ Sensor Gestures Example
- \ingroup qtsensors-examples
- \brief The sensor gesture example demonstrates the steps for creating a C++ application
- that uses sensor gestures and the included shake sensor.
- \image sensorgesturecpp.png
-
- QSensorGestures class defines one predefined signal, \c { void detected(const QString &) }
-
- As well, Sensor Gesture Recognizers may implement any number of their own custom signals.
-
- Our shake recognizer defines one custom signal, \c {void shake()}, as well as the predefined
- detected signal.
-
- \section1 SensorGestures Class Implementation
-
- In order to know about custom signals that may be available, we need to ask the QSensorGestureManager about them,
-
- Using the QSensorGesture::gestureIds() function, the manager will return a QStringList of known and valid gesture Ids.
- \snippet ../examples/sensors/sensorgestures/mainwindow.cpp 0
-
- We can then use this to create a QSensorGesture object that we can use to connect signals to,
- and start the detection process. A QSensorGesture object will take a list of one or more
- recognizer ids in it's constructor.
-
- \snippet ../examples/sensors/sensorgestures/mainwindow.cpp 1
-
- and later stop the detection process.
-
- \snippet ../examples/sensors/sensorgestures/mainwindow.cpp 2
-
- The QSensorGesture object will contain all the signals of the valid requested recognizers found on the system.
-
- You can discover which of the requested recognizer ID's that were not found by using QSensorGesture::invalidIds();
-
- By using QSensorGesture::gestureSignals(), you can get a QStringList of usable signals.
-
-
-*/
diff --git a/doc/src/examples/sensors.qdoc b/doc/src/examples/sensors.qdoc
deleted file mode 100644
index d934c8a0..00000000
--- a/doc/src/examples/sensors.qdoc
+++ /dev/null
@@ -1,40 +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$
-**
-****************************************************************************/
-
-/*!
- \group qtsensors-examples
- \title Qt Sensors Examples
- \brief Examples for the Qt Sensors module
- \ingroup all-examples
-
- These are the Qt Sensors examples.
-
- \generatelist related
-*/
-
-
-
diff --git a/doc/src/examples/shakeit.qdoc b/doc/src/examples/shakeit.qdoc
deleted file mode 100644
index 1dc300fd..00000000
--- a/doc/src/examples/shakeit.qdoc
+++ /dev/null
@@ -1,64 +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 sensors/shakeit
- \title Qt Sensors - ShakeIt QML Example
- \ingroup qtsensors-examples
- \image shakeit.png
-
- \section2 ShakeIt in QML
- \brief The sensor gesture example demonstrates the steps for creating a QML application
- that uses sensor gestures and the included shake sensor.
-
- Writing a QML application that uses the Shake QML sensorgestures type requires the following steps:
-
- Import the Sensors Declarative module.
-
- \snippet ../examples/sensors/shakeit/shakeit.qml 0
-
- Add a SensorGesture QML type.
-
- \snippet ../examples/sensors/shakeit/shakeit.qml 1
-
- In the SensorGesture type, specify which gesture to be used.
- Note that this can be a comma separated list. Here we are only interested in one
- gesture recognizer.
-
- \snippet ../examples/sensors/shakeit/shakeit.qml 2
-
- Use the 'enabled' property to start the sensor gesture.
-
- \snippet ../examples/sensors/shakeit/shakeit.qml 3
-
- Use the onDetected signal to do stuff.
-
- \snippet ../examples/sensors/shakeit/shakeit.qml 4
-
- There are additional gestures to shake which are supported:
- whip, twistRight, hover, cover, turnover and pickup.
-*/