WinRT: set orientation update mask to native orientation by default
This aligns with the other mobile platforms. Task-number: QTBUG-38691 Change-Id: I7b9b70a1182c0e53f997cae111ec46b5161b0b48 Reviewed-by: Oliver Wolff <oliver.wolff@digia.com>
This commit is contained in:
parent
14cb737ff7
commit
ad8efdbc0c
@ -496,6 +496,7 @@ QWinRTScreen::QWinRTScreen(ICoreWindow *window)
|
||||
|
||||
// Set initial orientation
|
||||
onOrientationChanged(0);
|
||||
setOrientationUpdateMask(m_nativeOrientation);
|
||||
|
||||
m_displayProperties->add_OrientationChanged(Callback<IDisplayPropertiesEventHandler>(this, &QWinRTScreen::onOrientationChanged).Get(),
|
||||
&m_tokens[QEvent::OrientationChange]);
|
||||
|
Loading…
Reference in New Issue
Block a user