summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qtextdocumentlayout.cpp
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@digia.com>2015-01-15 15:37:58 +0100
committerTor Arne Vestbø <tor.arne.vestbo@theqtcompany.com>2015-01-21 19:12:27 +0100
commit13c491e6c8e9be0ec77e11fba02824acf7bb4eac (patch)
tree5fa629d56fd7ffc2627a78bbefc36ac5e6c91ac8 /src/gui/text/qtextdocumentlayout.cpp
parentbdab31166ca4b8abd4b78301f92862828a2b61e7 (diff)
iOS: Fall back to statusbar orientation for initial QScreen::orientation()
At startup, iOS will report UIDeviceOrientationUnknown for the device orientation, which toQtScreenOrientation() maps to portrait. We can be smarter than that, by falling back to the orientation of the statusbar, which in most cases match the physical orientation of the screen at startup, unless the Info.plist file has been modified to limit the possible orientations. See also: https://gist.github.com/torarnv/40c1931205e33d2b1ed3 Change-Id: I5c78fbe5c670ed2909a51b478bd4814e2433554f Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@theqtcompany.com>
Diffstat (limited to 'src/gui/text/qtextdocumentlayout.cpp')
0 files changed, 0 insertions, 0 deletions