summaryrefslogtreecommitdiffstats
path: root/src/plugins/qnx/camera/bbcameraorientationhandler.cpp
diff options
context:
space:
mode:
authorRafael Roquetto <rafael.roquetto.qnx@kdab.com>2015-02-12 08:04:11 -0200
committerYoann Lopes <yoann.lopes@theqtcompany.com>2015-02-18 15:44:42 +0000
commite5ffc6a876631bf27feee793734209271db82bd9 (patch)
treeb8b8218bcdf0fedcf963d208f03e86e9afd41f3d /src/plugins/qnx/camera/bbcameraorientationhandler.cpp
parent178c0401685a56541995ca1ac9b5f6a4b543626d (diff)
Remove BlackBerry PlayBook support.
Change-Id: I21f9c21bd3badd30f3a989ce3412c9ad03f5f21d Reviewed-by: Bernd Weimer <bernd.weimer@pelagicore.com> Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
Diffstat (limited to 'src/plugins/qnx/camera/bbcameraorientationhandler.cpp')
-rw-r--r--src/plugins/qnx/camera/bbcameraorientationhandler.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/plugins/qnx/camera/bbcameraorientationhandler.cpp b/src/plugins/qnx/camera/bbcameraorientationhandler.cpp
index 110df73f2..e3345f6ab 100644
--- a/src/plugins/qnx/camera/bbcameraorientationhandler.cpp
+++ b/src/plugins/qnx/camera/bbcameraorientationhandler.cpp
@@ -63,11 +63,9 @@ BbCameraOrientationHandler::BbCameraOrientationHandler(QObject *parent)
BbCameraOrientationHandler::~BbCameraOrientationHandler()
{
-#ifndef Q_OS_BLACKBERRY_TABLET
const int result = orientation_stop_events(0);
if (result == BPS_FAILURE)
qWarning() << "Unable to unregister for orientation change events";
-#endif
QCoreApplication::eventDispatcher()->removeNativeEventFilter(this);
}
@@ -80,10 +78,9 @@ bool BbCameraOrientationHandler::nativeEventFilter(const QByteArray&, void *mess
const int angle = orientation_event_get_angle(event);
if (angle != m_orientation) {
-#ifndef Q_OS_BLACKBERRY_TABLET
if (angle == 180) // The screen does not rotate at 180 degrees
return false;
-#endif
+
m_orientation = angle;
emit orientationChanged(m_orientation);
}