on xenial help sign in
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
1 file changed+1−1
src/main.cpp+1−1
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") {