diff options
author | Thomas McGuire <thomas.mcguire.qnx@kdab.com> | 2013-02-01 09:44:00 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-02-08 11:17:45 +0100 |
commit | ae6d8a286b760198705e877a5ba4c1eecc7a5e8d (patch) | |
tree | ef93fec2264376743fe0fdf8bac1cac1dfe3d13d /src/sensors/qrotationsensor_p.h | |
parent | a3f4766964022ff0dc7ea0832922c2a58ab47e82 (diff) |
Convert QRotationSensor::hasZ to a proper property
Change-Id: I32edf761653fbe9d08710703b02fb1c0183aba3e
Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
Diffstat (limited to 'src/sensors/qrotationsensor_p.h')
-rw-r--r-- | src/sensors/qrotationsensor_p.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/sensors/qrotationsensor_p.h b/src/sensors/qrotationsensor_p.h index bf3aef7c..401c2143 100644 --- a/src/sensors/qrotationsensor_p.h +++ b/src/sensors/qrotationsensor_p.h @@ -53,6 +53,8 @@ // We mean it. // +#include "qsensor_p.h" + QT_BEGIN_NAMESPACE class QRotationReadingPrivate @@ -70,6 +72,17 @@ public: qreal z; }; +class QRotationSensorPrivate : public QSensorPrivate +{ +public: + QRotationSensorPrivate() + : hasZ(true) + { + } + + bool hasZ; +}; + QT_END_NAMESPACE #endif |