Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 57 QQuickView *createView()
- 58 {
- 59 QQuickWindow::setDefaultAlphaBuffer(true);
- 60
- 61 QQuickView *view = SailfishAppPriv::view();
- 62
- 63 // XXX: The next 4 lines fix a bug in QtWayland not showing the window
- 64 // and should eventually be removed (see JB#8917)
- 65 QGuiApplication *application = static_cast<QGuiApplication *>(QGuiApplication::instance());
- 66 QSize screenSize = application->primaryScreen()->size();
- 67 view->resize(screenSize.width(), screenSize.height());
- 68
- 69 return view;
- 70 }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement