summaryrefslogtreecommitdiffstats
path: root/src/sensors/qambientlightsensor.cpp
diff options
context:
space:
mode:
authorThomas McGuire <thomas.mcguire.qnx@kdab.com>2013-04-22 11:34:40 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-05-06 09:16:24 +0200
commit5b11584bfede4e0787532ec3c9ba763100a8898f (patch)
treea4028959e15d2887a2a4c370a5662c4dddfc055b /src/sensors/qambientlightsensor.cpp
parente533f476239ea25edaf8fbfc6e8a76ccfd0ab330 (diff)
Fix some potential binary compatibility issues
Mostly de-inlining methods, and in addition providing a virtual destructor. Change-Id: I0aef91e7a896e8a16fc023a11bd35a5ef3048ee6 Reviewed-by: Bernd Weimer <bweimer@blackberry.com> Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
Diffstat (limited to 'src/sensors/qambientlightsensor.cpp')
-rw-r--r--src/sensors/qambientlightsensor.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/sensors/qambientlightsensor.cpp b/src/sensors/qambientlightsensor.cpp
index 2c434b47..6992459a 100644
--- a/src/sensors/qambientlightsensor.cpp
+++ b/src/sensors/qambientlightsensor.cpp
@@ -126,6 +126,11 @@ void QAmbientLightReading::setLightLevel(QAmbientLightReading::LightLevel lightL
\sa QSensorFilter::filter()
*/
+bool QAmbientLightFilter::filter(QSensorReading *reading)
+{
+ return filter(static_cast<QAmbientLightReading*>(reading));
+}
+
char const * const QAmbientLightSensor::type("QAmbientLightSensor");
/*!
@@ -167,6 +172,11 @@ QAmbientLightSensor::~QAmbientLightSensor()
\sa QSensor::reading()
*/
+QAmbientLightReading *QAmbientLightSensor::reading() const
+{
+ return static_cast<QAmbientLightReading*>(QSensor::reading());
+}
+
#include "moc_qambientlightsensor.cpp"
QT_END_NAMESPACE