Commit 7a742a89 authored by Filip Matijević's avatar Filip Matijević

[rotation] push nativeOrientation variable into qml context

parent 6e4b5819
......@@ -57,7 +57,7 @@ int main(int argc, char **argv)
nativeOrientation = app.primaryScreen()->nativeOrientation();
}
}
app.engine()->rootContext()->setContextProperty("nativeOrientation", v);
app.engine()->rootContext()->setContextProperty("nativeOrientation", nativeOrientation);
qmlRegisterType<GlacierWindowModel>("org.nemomobile.glacier", 1, 0 ,"GlacierWindowModel");
app.setQmlPath("/usr/share/lipstick-glacier-home-qt5/qml/MainScreen.qml");
// Give these to the environment inside the lipstick homescreen
......
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