diff options
author | Thomas McGuire <thomas.mcguire.qnx@kdab.com> | 2012-07-02 13:39:00 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-07-03 02:10:06 +0200 |
commit | f7c3a6686ef77e95128f1dc4a03c7a8184a18231 (patch) | |
tree | 150ec0f8bac4e701cb913aed8cb2b27e43e7ad79 /src/sensors/qproximitysensor.h | |
parent | 1908f86c6d8cb28a81d02272dfd3443e827cf37c (diff) | |
download | qtsensors-f7c3a6686ef77e95128f1dc4a03c7a8184a18231.tar.gz |
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/qproximitysensor.h')
-rw-r--r-- | src/sensors/qproximitysensor.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/sensors/qproximitysensor.h b/src/sensors/qproximitysensor.h index cd80435..534671c 100644 --- a/src/sensors/qproximitysensor.h +++ b/src/sensors/qproximitysensor.h @@ -73,10 +73,13 @@ class Q_SENSORS_EXPORT QProximitySensor : public QSensor { Q_OBJECT public: - explicit QProximitySensor(QObject *parent = 0) : QSensor(QProximitySensor::type, parent) {} - virtual ~QProximitySensor() {} + explicit QProximitySensor(QObject *parent = 0); + virtual ~QProximitySensor(); QProximityReading *reading() const { return static_cast<QProximityReading*>(QSensor::reading()); } static char const * const type; + +private: + Q_DISABLE_COPY(QProximitySensor) }; QT_END_NAMESPACE |