summaryrefslogtreecommitdiffstats
path: root/src/sensors/qrotationsensor.cpp
diff options
context:
space:
mode:
authorThomas McGuire <thomas.mcguire.qnx@kdab.com>2012-07-02 13:39:00 +0200
committerQt by Nokia <qt-info@nokia.com>2012-07-03 02:10:06 +0200
commitf7c3a6686ef77e95128f1dc4a03c7a8184a18231 (patch)
tree150ec0f8bac4e701cb913aed8cb2b27e43e7ad79 /src/sensors/qrotationsensor.cpp
parent1908f86c6d8cb28a81d02272dfd3443e827cf37c (diff)
QSensor: Use standard Qt dpointer pattern
Now it is possible to extend QSensor subclasses without breaking binary compatibility. In addition, de-inline the constructors and destructors of subclasses to make it possible to replace them without compatibility problems. Change-Id: I69de97002ade3e75f090761f852a5aca39c0f555 Reviewed-by: Marc Mutz <marc.mutz@kdab.com> Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com> Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
Diffstat (limited to 'src/sensors/qrotationsensor.cpp')
-rw-r--r--src/sensors/qrotationsensor.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/sensors/qrotationsensor.cpp b/src/sensors/qrotationsensor.cpp
index b2d65e3f..6adbf6a2 100644
--- a/src/sensors/qrotationsensor.cpp
+++ b/src/sensors/qrotationsensor.cpp
@@ -205,16 +205,19 @@ char const * const QRotationSensor::type("QRotationSensor");
*/
/*!
- \fn QRotationSensor::QRotationSensor(QObject *parent)
-
Construct the sensor as a child of \a parent.
*/
+QRotationSensor::QRotationSensor(QObject *parent)
+ : QSensor(QRotationSensor::type, parent)
+{
+}
/*!
- \fn QRotationSensor::~QRotationSensor()
-
Destroy the sensor. Stops the sensor if it has not already been stopped.
*/
+QRotationSensor::~QRotationSensor()
+{
+}
/*!
\fn QRotationSensor::reading() const