summaryrefslogtreecommitdiffstats
path: root/src/sensors/qsensor.h
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/qsensor.h
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/qsensor.h')
-rw-r--r--src/sensors/qsensor.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/sensors/qsensor.h b/src/sensors/qsensor.h
index c0fdb978..80689267 100644
--- a/src/sensors/qsensor.h
+++ b/src/sensors/qsensor.h
@@ -158,14 +158,13 @@ Q_SIGNALS:
void alwaysOnChanged();
protected:
- // called by the back end
- QSensorPrivate *d_func() const { return d.data(); }
+ explicit QSensor(const QByteArray &type, QSensorPrivate &dd, QObject* parent = 0);
private:
void registerInstance();
- QScopedPointer<QSensorPrivate> d;
Q_DISABLE_COPY(QSensor)
+ Q_DECLARE_PRIVATE(QSensor)
};
class Q_SENSORS_EXPORT QSensorFilter