qt5base-lts/mkspecs
Tor Arne Vestbø 1126efed7d iOS: Set up default Info.plist to support all interface orientations
When the UISupportedInterfaceOrientations key is missing, iOS will start
up the application in the orientation defined by UIInterfaceOrientation,
and if that key is also missing, it will default to portrait orientation.

Unfortunately, when the application has finished launching on an iPad,
there is no way to re-evaluate the current device orientation unless the
user actively rotates the device, so for example if the device is physically
in landscape orientation, and the application is started up in portrait,
the application will not auto-rotate to landscape after starting up.

It would seem that [UIViewController attemptRotationToDeviceOrientation]
would be the right API to do this, but even after telling the device
to beginGeneratingDeviceOrientationNotifications the device orientation
will still match the startup orientation until the device is physically
rotated. For iPod/iPhones this is not an issue, as the OS will update
the device orientation after startup. Presumably the difference in
behavior between the two device classes is due to the iPad supporting
any orientation for the application grid.

Since we would prefer the application to either start up in the right
orientation directly, or at least rotate to it after startup, and the
latter can't be done, we apply UIInterfaceOrientationMaskAll to the
Info.plist file. This also has the benefit that the application will
show any splash screens in the right orientation.

Change-Id: If0421bc7b82b7f14a510fa1f34eac4f6407f570f
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@digia.com>
2014-10-03 16:31:54 +02:00
..
aix-g++ Update license headers and add new license files 2014-09-24 12:26:19 +02:00
aix-g++-64 Update license headers and add new license files 2014-09-24 12:26:19 +02:00
aix-xlc Update license headers and add new license files 2014-09-24 12:26:19 +02:00
aix-xlc-64 Update license headers and add new license files 2014-09-24 12:26:19 +02:00
android-g++ Update license headers and add new license files 2014-09-24 12:26:19 +02:00
blackberry-armle-v7-qcc Update license headers and add new license files 2014-09-24 12:26:19 +02:00
blackberry-armv7le-qcc Update license headers and add new license files 2014-09-24 12:26:19 +02:00
blackberry-x86-qcc Update license headers and add new license files 2014-09-24 12:26:19 +02:00
common make -force-debug-info work for objective C 2014-09-26 15:35:57 +02:00
cygwin-g++ Update license headers and add new license files 2014-09-24 12:26:19 +02:00
darwin-g++ Update license headers and add new license files 2014-09-24 12:26:19 +02:00
devices Update license headers and add new license files 2014-09-24 12:26:19 +02:00
features micro-optimization: make use of qtPrepareTool()'s new mode 2014-09-30 18:33:13 +02:00
freebsd-g++ Update license headers and add new license files 2014-09-24 12:26:19 +02:00
freebsd-g++46 Update license headers and add new license files 2014-09-24 12:26:19 +02:00
freebsd-icc Update license headers and add new license files 2014-09-24 12:26:19 +02:00
hpux-acc Update license headers and add new license files 2014-09-24 12:26:19 +02:00
hpux-acc-64 Update license headers and add new license files 2014-09-24 12:26:19 +02:00
hpux-acc-o64 Update license headers and add new license files 2014-09-24 12:26:19 +02:00
hpux-g++ Update license headers and add new license files 2014-09-24 12:26:19 +02:00
hpux-g++-64 Update license headers and add new license files 2014-09-24 12:26:19 +02:00
hpuxi-acc-32 Update license headers and add new license files 2014-09-24 12:26:19 +02:00
hpuxi-acc-64 Update license headers and add new license files 2014-09-24 12:26:19 +02:00
hpuxi-g++-64 Update license headers and add new license files 2014-09-24 12:26:19 +02:00
hurd-g++ Update license headers and add new license files 2014-09-24 12:26:19 +02:00
irix-cc Update license headers and add new license files 2014-09-24 12:26:19 +02:00
irix-cc-64 Update license headers and add new license files 2014-09-24 12:26:19 +02:00
irix-g++ Update license headers and add new license files 2014-09-24 12:26:19 +02:00
irix-g++-64 Update license headers and add new license files 2014-09-24 12:26:19 +02:00
linux-arm-gnueabi-g++ Update license headers and add new license files 2014-09-24 12:26:19 +02:00
linux-clang Update license headers and add new license files 2014-09-24 12:26:19 +02:00
linux-clang-libc++ Update license headers and add new license files 2014-09-24 12:26:19 +02:00
linux-cxx Update license headers and add new license files 2014-09-24 12:26:19 +02:00
linux-g++ Update license headers and add new license files 2014-09-24 12:26:19 +02:00
linux-g++-32 Update license headers and add new license files 2014-09-24 12:26:19 +02:00
linux-g++-64 Update license headers and add new license files 2014-09-24 12:26:19 +02:00
linux-icc Update license headers and add new license files 2014-09-24 12:26:19 +02:00
linux-icc-32 Update license headers and add new license files 2014-09-24 12:26:19 +02:00
linux-icc-64 Update license headers and add new license files 2014-09-24 12:26:19 +02:00
linux-kcc Update license headers and add new license files 2014-09-24 12:26:19 +02:00
linux-llvm Update license headers and add new license files 2014-09-24 12:26:19 +02:00
linux-lsb-g++ Update license headers and add new license files 2014-09-24 12:26:19 +02:00
linux-pgcc Update license headers and add new license files 2014-09-24 12:26:19 +02:00
lynxos-g++ Update license headers and add new license files 2014-09-24 12:26:19 +02:00
macx-clang Update license headers and add new license files 2014-09-24 12:26:19 +02:00
macx-clang-32 Update license headers and add new license files 2014-09-24 12:26:19 +02:00
macx-g++ Update license headers and add new license files 2014-09-24 12:26:19 +02:00
macx-g++40 Update license headers and add new license files 2014-09-24 12:26:19 +02:00
macx-g++42 Update license headers and add new license files 2014-09-24 12:26:19 +02:00
macx-g++-32 Update license headers and add new license files 2014-09-24 12:26:19 +02:00
macx-icc Update license headers and add new license files 2014-09-24 12:26:19 +02:00
macx-ios-clang iOS: Set up default Info.plist to support all interface orientations 2014-10-03 16:31:54 +02:00
macx-llvm Update license headers and add new license files 2014-09-24 12:26:19 +02:00
macx-xcode Update license headers and add new license files 2014-09-24 12:26:19 +02:00
modules update readme to current reality 2012-01-27 13:55:27 +01:00
netbsd-g++ Update license headers and add new license files 2014-09-24 12:26:19 +02:00
openbsd-g++ Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qnx-armle-v7-qcc Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qnx-armv7le-qcc Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qnx-x86-qcc Update license headers and add new license files 2014-09-24 12:26:19 +02:00
sco-cc Update license headers and add new license files 2014-09-24 12:26:19 +02:00
sco-g++ Update license headers and add new license files 2014-09-24 12:26:19 +02:00
solaris-cc Update license headers and add new license files 2014-09-24 12:26:19 +02:00
solaris-cc-64 Update license headers and add new license files 2014-09-24 12:26:19 +02:00
solaris-cc-64-stlport Update license headers and add new license files 2014-09-24 12:26:19 +02:00
solaris-cc-stlport Update license headers and add new license files 2014-09-24 12:26:19 +02:00
solaris-g++ Update license headers and add new license files 2014-09-24 12:26:19 +02:00
solaris-g++-64 Update license headers and add new license files 2014-09-24 12:26:19 +02:00
tru64-cxx Update license headers and add new license files 2014-09-24 12:26:19 +02:00
tru64-g++ Update license headers and add new license files 2014-09-24 12:26:19 +02:00
unixware-cc Update license headers and add new license files 2014-09-24 12:26:19 +02:00
unixware-g++ Update license headers and add new license files 2014-09-24 12:26:19 +02:00
unsupported Update license headers and add new license files 2014-09-24 12:26:19 +02:00
win32-g++ Update license headers and add new license files 2014-09-24 12:26:19 +02:00
win32-icc Update license headers and add new license files 2014-09-24 12:26:19 +02:00
win32-msvc2005 Update license headers and add new license files 2014-09-24 12:26:19 +02:00
win32-msvc2008 Update license headers and add new license files 2014-09-24 12:26:19 +02:00
win32-msvc2010 Update license headers and add new license files 2014-09-24 12:26:19 +02:00
win32-msvc2012 Update license headers and add new license files 2014-09-24 12:26:19 +02:00
win32-msvc2013 Update license headers and add new license files 2014-09-24 12:26:19 +02:00
wince60standard-armv4i-msvc2005 Update license headers and add new license files 2014-09-24 12:26:19 +02:00
wince60standard-x86-msvc2005 Update license headers and add new license files 2014-09-24 12:26:19 +02:00
wince70embedded-armv4i-msvc2008 Update license headers and add new license files 2014-09-24 12:26:19 +02:00
wince70embedded-x86-msvc2008 Update license headers and add new license files 2014-09-24 12:26:19 +02:00
winphone-arm-msvc2012 Update license headers and add new license files 2014-09-24 12:26:19 +02:00
winphone-arm-msvc2013 Update license headers and add new license files 2014-09-24 12:26:19 +02:00
winphone-x86-msvc2012 Update license headers and add new license files 2014-09-24 12:26:19 +02:00
winphone-x86-msvc2013 Update license headers and add new license files 2014-09-24 12:26:19 +02:00
winrt-arm-msvc2012 Update license headers and add new license files 2014-09-24 12:26:19 +02:00
winrt-arm-msvc2013 Update license headers and add new license files 2014-09-24 12:26:19 +02:00
winrt-x64-msvc2012 Update license headers and add new license files 2014-09-24 12:26:19 +02:00
winrt-x64-msvc2013 Update license headers and add new license files 2014-09-24 12:26:19 +02:00
winrt-x86-msvc2012 Update license headers and add new license files 2014-09-24 12:26:19 +02:00
winrt-x86-msvc2013 Update license headers and add new license files 2014-09-24 12:26:19 +02:00