From f9d52ca1c093d8997d44cd8356b43b2665fdbf20 Mon Sep 17 00:00:00 2001 From: Lincoln Ramsay Date: Tue, 19 Jun 2012 11:45:09 +1000 Subject: 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 --- examples/sensors/grue/import/main.cpp | 6 ++---- examples/sensors/sensor_explorer/import/sensoritem.cpp | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'examples') 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; -- cgit v1.2.1