diff options
author | Jonathan Maw <jonathan.maw@codethink.co.uk> | 2015-05-20 12:39:16 +0000 |
---|---|---|
committer | Jonathan Maw <jonathan.maw@codethink.co.uk> | 2015-10-19 10:49:02 +0000 |
commit | 4b5b4dd761b86d74b881fd3f998fef548d22b467 (patch) | |
tree | 9204fa7131f234b5849f22e1fc962cf24922ea5e | |
parent | f632166a42c924bf14a48e73d1d25c68bbd94dee (diff) | |
download | browser-poc-4b5b4dd761b86d74b881fd3f998fef548d22b467.tar.gz |
Demoui: Make Graphic working for Qemu machine
This is based off the patch by meta-genivi-demo of the same name.
-rw-r--r-- | demoui/main.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/demoui/main.cpp b/demoui/main.cpp index 5404302..ef9bebc 100644 --- a/demoui/main.cpp +++ b/demoui/main.cpp @@ -20,6 +20,10 @@ #include <QtQml> #include <QQuickItem> +//For QEMU +#include <QScreen> +#include <QQuickWindow> + #define BROWSER_POC_SURFACE_ID 30 int main(int argc, char *argv[]) @@ -42,5 +46,11 @@ int main(int argc, char *argv[]) viewer->showFullScreen(); + //For Qemu only + QSize size = app.primaryScreen()->size(); + viewer->rootObject()->setWidth(size.width()); + viewer->rootObject()->setHeight(size.height()); + viewer->show(); + return app.exec(); } |