Commit d0e6d6e7 authored by Aleksi Suomalainen's avatar Aleksi Suomalainen Committed by GitHub

[qt5.6] Update to Qt 5.6 compatibility

Qt 5.6 requires application to be started at the first line of main()
parent a6b102e6
...@@ -32,9 +32,8 @@ ...@@ -32,9 +32,8 @@
int main(int argc, char **argv) int main(int argc, char **argv)
{ {
QmlPath::append("/usr/share/lipstick-glacier-home-qt5/qml");
HomeApplication app(argc, argv, QString()); HomeApplication app(argc, argv, QString());
QmlPath::append("/usr/share/lipstick-glacier-home-qt5/qml");
QGuiApplication::setFont(QFont("Open Sans")); QGuiApplication::setFont(QFont("Open Sans"));
app.setCompositorPath("/usr/share/lipstick-glacier-home-qt5/qml/compositor.qml"); app.setCompositorPath("/usr/share/lipstick-glacier-home-qt5/qml/compositor.qml");
Qt::ScreenOrientation nativeOrientation = app.primaryScreen()->nativeOrientation(); Qt::ScreenOrientation nativeOrientation = app.primaryScreen()->nativeOrientation();
......
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