uikit: Remove use of ifdef when resolving available screen geometry
More explicit that we're falling back to m_geometry on non-iOS platforms. Change-Id: I09bd5270aee5edb977983893a8407218eea0f74a Reviewed-by: Jake Petroules <jake.petroules@qt.io>
This commit is contained in:
parent
58566686fc
commit
88ebee5cd7
@ -232,11 +232,8 @@ void QIOSScreen::updateProperties()
|
||||
QRect previousAvailableGeometry = m_availableGeometry;
|
||||
|
||||
m_geometry = QRectF::fromCGRect(m_uiScreen.bounds).toRect();
|
||||
#ifndef Q_OS_TVOS
|
||||
m_availableGeometry = QRectF::fromCGRect(m_uiScreen.applicationFrame).toRect();
|
||||
#else
|
||||
m_availableGeometry = QRectF::fromCGRect(m_uiScreen.bounds).toRect();
|
||||
#endif
|
||||
m_availableGeometry = QSysInfo::MacintoshVersion & QSysInfo::MV_IOS ?
|
||||
QRectF::fromCGRect(m_uiScreen.applicationFrame).toRect() : m_geometry;
|
||||
|
||||
#ifndef Q_OS_TVOS
|
||||
if (m_uiScreen == [UIScreen mainScreen]) {
|
||||
|
Loading…
Reference in New Issue
Block a user