Merge remote-tracking branch 'origin/5.4' into dev
Conflicts: .qmake.conf Change-Id: I31e377cdccf8bf5c1ea8143faf2001ac99608c27
This commit is contained in:
@@ -119,6 +119,7 @@ protected:
|
||||
|
||||
private Q_SLOTS:
|
||||
void _q_updateMediaObject();
|
||||
void _q_updateCameraInfo();
|
||||
void _q_updateNativeSize();
|
||||
void _q_updateGeometry();
|
||||
void _q_screenOrientationChanged(int);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user