diff options
author | Andrew Knight <andrew.knight@theqtcompany.com> | 2014-12-04 12:53:57 +0200 |
---|---|---|
committer | Yoann Lopes <yoann.lopes@theqtcompany.com> | 2014-12-11 16:13:47 +0100 |
commit | 085362ab0f313f4e3947c39a008d801024f6f0b4 (patch) | |
tree | e06a9a0a82249a673189b8e0e33334678176b181 | |
parent | f420ac286a303bc235b8c1047f8c845314df1f8a (diff) | |
download | qtmultimedia-085362ab0f313f4e3947c39a008d801024f6f0b4.tar.gz |
Remove private API use from video orientation handler
The QPA header isn't needed anymore, as nativeOrientation was added as
a QScreen property in 5.2.
Change-Id: I7cd00feae769175fd0c4be65b503e74ee910814a
Reviewed-by: Yoann Lopes <yoann.lopes@theqtcompany.com>
-rw-r--r-- | src/multimedia/video/qvideooutputorientationhandler.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/multimedia/video/qvideooutputorientationhandler.cpp b/src/multimedia/video/qvideooutputorientationhandler.cpp index e6fa0a180..f50f8f451 100644 --- a/src/multimedia/video/qvideooutputorientationhandler.cpp +++ b/src/multimedia/video/qvideooutputorientationhandler.cpp @@ -35,7 +35,6 @@ #include <QGuiApplication> #include <QScreen> -#include <qpa/qplatformscreen.h> QT_BEGIN_NAMESPACE @@ -63,9 +62,8 @@ int QVideoOutputOrientationHandler::currentOrientation() const void QVideoOutputOrientationHandler::screenOrientationChanged(Qt::ScreenOrientation orientation) { const QScreen *screen = QGuiApplication::primaryScreen(); - const QPlatformScreen *platformScreen = screen->handle(); - const int angle = (360 - screen->angleBetween(platformScreen->nativeOrientation(), orientation)) % 360; + const int angle = (360 - screen->angleBetween(screen->nativeOrientation(), orientation)) % 360; if (angle == m_currentOrientation) return; |