Have PrimaryOrientation as default, not Portrait. Fixes orientation while testing on desktop
commit5c7346a601504aa9a319e919bc996b6dde7aeacc
authorGerry Boland <gerry.boland@canonical.com>
dateFri 14 Feb 2014, 12:58 (13 years ago)
parent710a8de
src/main.cpp+1−1
@@ -93,7 +93,7 @@ int startShell(int argc, const char** argv, void* server)
9393 }
9494
9595 const QByteArray orientation = qgetenv("NATIVE_ORIENTATION");
96− Qt::ScreenOrientation orientationAngle = Qt::PortraitOrientation;
96+ Qt::ScreenOrientation orientationAngle = Qt::PrimaryOrientation;
9797 if (orientation == "landscape") {
9898 orientationAngle = Qt::LandscapeOrientation;
9999 } else if (!orientation.isEmpty() && orientation != "portrait") {