summaryrefslogtreecommitdiffstats
path: root/src/sensors/qorientationsensor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sensors/qorientationsensor.cpp')
-rw-r--r--src/sensors/qorientationsensor.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/sensors/qorientationsensor.cpp b/src/sensors/qorientationsensor.cpp
index 0ca545e6..5f5015d6 100644
--- a/src/sensors/qorientationsensor.cpp
+++ b/src/sensors/qorientationsensor.cpp
@@ -149,6 +149,11 @@ void QOrientationReading::setOrientation(QOrientationReading::Orientation orient
\sa QSensorFilter::filter()
*/
+bool QOrientationFilter::filter(QSensorReading *reading)
+{
+ return filter(static_cast<QOrientationReading*>(reading));
+}
+
char const * const QOrientationSensor::type("QOrientationSensor");
/*!
@@ -190,6 +195,11 @@ QOrientationSensor::~QOrientationSensor()
\sa QSensor::reading()
*/
+QOrientationReading *QOrientationSensor::reading() const
+{
+ return static_cast<QOrientationReading*>(QSensor::reading());
+}
+
#include "moc_qorientationsensor.cpp"
QT_END_NAMESPACE