on xenial help sign in
Have PrimaryOrientation as default, not Portrait. Fixes orientation while testing on desktop
5c7346aGerry Boland
src/main.cpp+1−1
@@ -93,7 +93,7 @@ int startShell(int argc, const char** argv, void* server)
93 }
93 }
94
94
95 const QByteArray orientation = qgetenv("NATIVE_ORIENTATION");
95 const QByteArray orientation = qgetenv("NATIVE_ORIENTATION");
96− Qt::ScreenOrientation orientationAngle = Qt::PortraitOrientation;
96+ Qt::ScreenOrientation orientationAngle = Qt::PrimaryOrientation;
97 if (orientation == "landscape") {
97 if (orientation == "landscape") {
98 orientationAngle = Qt::LandscapeOrientation;
98 orientationAngle = Qt::LandscapeOrientation;
99 } else if (!orientation.isEmpty() && orientation != "portrait") {
99 } else if (!orientation.isEmpty() && orientation != "portrait") {