summaryrefslogtreecommitdiff
path: root/examples/sensors
diff options
context:
space:
mode:
authorLincoln Ramsay <lincoln.ramsay@nokia.com>2012-06-19 11:45:09 +1000
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-09-26 00:29:37 +0200
commitf9d52ca1c093d8997d44cd8356b43b2665fdbf20 (patch)
tree45fd29bd91c67794bf3e1aefbf232bbd1d2f7b8f /examples/sensors
parent1d253860f9863fd015115d728c3f1bd04c5119c6 (diff)
downloadqtsensors-f9d52ca1c093d8997d44cd8356b43b2665fdbf20.tar.gz
QtMobility.sensors has a new implementation
This implementation fixes the limitations the original code had and separates the QtSensors C++ API from the QML API so that changes to one don't need to affect the other. Change-Id: I519463f3c7cfbad3bce5c291ce166b8793d5ed4a Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
Diffstat (limited to 'examples/sensors')
-rw-r--r--examples/sensors/grue/import/main.cpp6
-rw-r--r--examples/sensors/sensor_explorer/import/sensoritem.cpp2
2 files changed, 3 insertions, 5 deletions
diff --git a/examples/sensors/grue/import/main.cpp b/examples/sensors/grue/import/main.cpp
index 44714a5..d892d89 100644
--- a/examples/sensors/grue/import/main.cpp
+++ b/examples/sensors/grue/import/main.cpp
@@ -112,22 +112,20 @@ QT_END_NAMESPACE
\qmltype GrueSensor
\instantiates GrueSensor
\inherits QtMobility.sensors1::Sensor
- \inqmlmodule Grue 1
+ \inqmlmodule Grue 1.0
\brief The GrueSensor type reports on your chance of being eaten by a Grue.
The GrueSensor type reports on your chance of being eaten by a Grue.
This type wraps the GrueSensor class. Please see the documentation for
GrueSensor for details.
-
- \sa {QtMobility.sensors QML Limitations}
*/
/*
\qmltype GrueSensorReading
\instantiates GrueSensorReading
\inherits QtMobility.sensors1::SensorReading
- \inqmlmodule Grue 1
+ \inqmlmodule Grue 1.0
\brief The GrueSensorReading type holds the most recent GrueSensor reading.
The GrueSensorReading type holds the most recent GrueSensor reading.
diff --git a/examples/sensors/sensor_explorer/import/sensoritem.cpp b/examples/sensors/sensor_explorer/import/sensoritem.cpp
index 4ef4b5c..1b14c6a 100644
--- a/examples/sensors/sensor_explorer/import/sensoritem.cpp
+++ b/examples/sensors/sensor_explorer/import/sensoritem.cpp
@@ -220,7 +220,7 @@ bool QSensorItem::ignoreProperty(const QString& propertyname)
{
if (propertyname == "reading" ||
propertyname == "active" ||
- propertyname == "sensorid" ||
+ propertyname == "identifier" ||
propertyname == "connectedToBackend" ||
propertyname == "busy")
return true;