Advertisement
Guest User

Untitled

a guest
Nov 24th, 2013
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. 57 QQuickView *createView()
  2. 58 {
  3. 59 QQuickWindow::setDefaultAlphaBuffer(true);
  4. 60
  5. 61 QQuickView *view = SailfishAppPriv::view();
  6. 62
  7. 63 // XXX: The next 4 lines fix a bug in QtWayland not showing the window
  8. 64 // and should eventually be removed (see JB#8917)
  9. 65 QGuiApplication *application = static_cast<QGuiApplication *>(QGuiApplication::instance());
  10. 66 QSize screenSize = application->primaryScreen()->size();
  11. 67 view->resize(screenSize.width(), screenSize.height());
  12. 68
  13. 69 return view;
  14. 70 }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement