summaryrefslogtreecommitdiffstats
path: root/basicsuite/SensorExplorer/doc/src/sensor_explorer.qdoc
diff options
context:
space:
mode:
Diffstat (limited to 'basicsuite/SensorExplorer/doc/src/sensor_explorer.qdoc')
-rw-r--r--basicsuite/SensorExplorer/doc/src/sensor_explorer.qdoc34
1 files changed, 11 insertions, 23 deletions
diff --git a/basicsuite/SensorExplorer/doc/src/sensor_explorer.qdoc b/basicsuite/SensorExplorer/doc/src/sensor_explorer.qdoc
index be04215..001642f 100644
--- a/basicsuite/SensorExplorer/doc/src/sensor_explorer.qdoc
+++ b/basicsuite/SensorExplorer/doc/src/sensor_explorer.qdoc
@@ -26,18 +26,18 @@
****************************************************************************/
/*!
- \example sensor_explorer
- \title Qt Sensors - Explorer QML example
- \ingroup qtsensors-examples
+ \example SensorExplorer
+ \title Sensor Explorer
+ \brief The Sensor Explorer example demonstrates how to read the meta-data of available sensors.
+ \ingroup b2qt-demos
\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 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
@@ -54,38 +54,26 @@
Import the Explorer 1.0 declarative plugin:
- \snippet sensor_explorer/sensor_explorer.qml 0
+ \snippet SensorExplorer/main.qml 0
Create a SensorExplorer QML item:
- \snippet sensor_explorer/sensor_explorer.qml 1
+ \snippet SensorExplorer/main.qml 1
You can retrieve a list of all available sensors using the SensorExplorer:
- \snippet sensor_explorer/sensor_explorer.qml 2
+ \snippet SensorExplorer/main.qml 2
To retrieve the properties of a SensorItem use:
- \snippet sensor_explorer/sensor_explorer.qml 3
+ \snippet SensorExplorer/main.qml 3
Changing a property value can be done like:
- \snippet sensor_explorer/sensor_explorer.qml 4
+ \snippet SensorExplorer/main.qml 4
Starting and stopping a sensor can be done like:
- \snippet sensor_explorer/sensor_explorer.qml 5
-*/
-
-/*!
- \example 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}
+ \snippet SensorExplorer/main.qml 5
*/