Commit 01e8119c authored by Filip Matijević's avatar Filip Matijević

[rotation] set nativeOrientation to primaryOrientation instead of Qt::PrimaryOrientation

parent ac8b35b5
...@@ -57,6 +57,8 @@ int main(int argc, char **argv) ...@@ -57,6 +57,8 @@ int main(int argc, char **argv)
nativeOrientation = app.primaryScreen()->nativeOrientation(); nativeOrientation = app.primaryScreen()->nativeOrientation();
} }
} }
if (nativeOrientation == Qt::PrimaryOrientation)
nativeOrientation = app.primaryScreen()->primaryOrientation();
app.engine()->rootContext()->setContextProperty("nativeOrientation", nativeOrientation); app.engine()->rootContext()->setContextProperty("nativeOrientation", nativeOrientation);
qmlRegisterType<GlacierWindowModel>("org.nemomobile.glacier", 1, 0 ,"GlacierWindowModel"); qmlRegisterType<GlacierWindowModel>("org.nemomobile.glacier", 1, 0 ,"GlacierWindowModel");
app.setQmlPath("/usr/share/lipstick-glacier-home-qt5/qml/MainScreen.qml"); app.setQmlPath("/usr/share/lipstick-glacier-home-qt5/qml/MainScreen.qml");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment