summaryrefslogtreecommitdiffstats
path: root/src/imports/sensors/qmlrotationsensor.cpp
diff options
context:
space:
mode:
authorThomas McGuire <thomas.mcguire.qnx@kdab.com>2013-02-01 09:44:00 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-02-08 11:17:45 +0100
commitae6d8a286b760198705e877a5ba4c1eecc7a5e8d (patch)
treeef93fec2264376743fe0fdf8bac1cac1dfe3d13d /src/imports/sensors/qmlrotationsensor.cpp
parenta3f4766964022ff0dc7ea0832922c2a58ab47e82 (diff)
Convert QRotationSensor::hasZ to a proper property
Change-Id: I32edf761653fbe9d08710703b02fb1c0183aba3e Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
Diffstat (limited to 'src/imports/sensors/qmlrotationsensor.cpp')
-rw-r--r--src/imports/sensors/qmlrotationsensor.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/imports/sensors/qmlrotationsensor.cpp b/src/imports/sensors/qmlrotationsensor.cpp
index e58a3f8c..f1821641 100644
--- a/src/imports/sensors/qmlrotationsensor.cpp
+++ b/src/imports/sensors/qmlrotationsensor.cpp
@@ -65,6 +65,7 @@ QmlRotationSensor::QmlRotationSensor(QObject *parent)
: QmlSensor(parent)
, m_sensor(new QRotationSensor(this))
{
+ connect(m_sensor, SIGNAL(hasZChanged(bool)), this, SIGNAL(hasZChanged(bool)));
}
QmlRotationSensor::~QmlRotationSensor()
@@ -90,7 +91,7 @@ QSensor *QmlRotationSensor::sensor() const
bool QmlRotationSensor::hasZ() const
{
- return m_sensor->property("hasZ").toBool();
+ return m_sensor->hasZ();
}
void QmlRotationSensor::_update()