iOS: Enable autorotate on startup.
authorMorten Johan Sørvig <morten.sorvig@digia.com>
Thu, 14 Feb 2013 18:45:48 +0000 (19:45 +0100)
committerTor Arne Vestbø <tor.arne.vestbo@digia.com>
Wed, 27 Feb 2013 22:56:10 +0000 (23:56 +0100)
commitfecc1554080aa58167b8cc7018b2ccd037d05cfe
treeb44b3238af9e12fce74b33e1407e9d3c7a832361
parentc75bc5b532479e8dbe6b7f07dcc5f9fcc915f5c7
iOS: Enable autorotate on startup.

The qobject_cast to QGuiAppplication will always
fail at startup since QGuiApplication is not ready
yet.

Return YES in that case. Allowed orientations can then
be controlled by setting "Supported Interface Orientations"
in Xcode or the Info.plist file.

Change-Id: Ifd86bbcedabc716e63563bbb7cb0c1c6833fd6c7
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@digia.com>
src/plugins/platforms/ios/qiosviewcontroller.mm