Patchwork [meta-fsl-demos,2/2] qt-in-industrial-embedded-common: add patch to run demos in fullscreen mode

login
register
mail settings
Submitter Mario Domenech Goulart
Date Jan. 17, 2014, 2:02 p.m.
Message ID <1389967366-2718-2-git-send-email-mario@ossystems.com.br>
Download mbox | patch
Permalink /patch/65085/
State Accepted
Delegated to: Otavio Salvador
Headers show

Comments

Mario Domenech Goulart - Jan. 17, 2014, 2:02 p.m.
Signed-off-by: Mario Domenech Goulart <mario@ossystems.com.br>
---
 recipes-qt/qt-in-use/files/fullscreen.patch               |   13 +++++++++++++
 recipes-qt/qt-in-use/qt-in-industrial-embedded-common.inc |    1 +
 2 files changed, 14 insertions(+)
 create mode 100644 recipes-qt/qt-in-use/files/fullscreen.patch

Patch

diff --git a/recipes-qt/qt-in-use/files/fullscreen.patch b/recipes-qt/qt-in-use/files/fullscreen.patch
new file mode 100644
index 0000000..e1c67db
--- /dev/null
+++ b/recipes-qt/qt-in-use/files/fullscreen.patch
@@ -0,0 +1,13 @@ 
+diff --git a/smarthome/main.cpp b/smarthome/main.cpp
+index 89c60f3..bed47e8 100644
+--- a/smarthome/main.cpp
++++ b/smarthome/main.cpp
+@@ -16,7 +16,7 @@ int main(int argc, char *argv[])
+     QmlApplicationViewer viewer;
+     viewer.setOrientation(QmlApplicationViewer::ScreenOrientationLockLandscape);
+     viewer.setMainQmlFile(QLatin1String("qml/smarthome/smarthome.qml"));
+-    viewer.show();
++    viewer.showFullScreen();
+ 
+     return app.exec();
+ }
diff --git a/recipes-qt/qt-in-use/qt-in-industrial-embedded-common.inc b/recipes-qt/qt-in-use/qt-in-industrial-embedded-common.inc
index ad879c5..405794d 100644
--- a/recipes-qt/qt-in-use/qt-in-industrial-embedded-common.inc
+++ b/recipes-qt/qt-in-use/qt-in-industrial-embedded-common.inc
@@ -5,6 +5,7 @@  inherit autotools update-rc.d
 PV = "0.0+gitr${SRCPV}"
 SRCREV = "4b10cbfd32391c83251bbc61520eeab03461db0a"
 SRC_URI = "git://gitorious.org/qt-in-use/qt-in-industrial-embedded.git \
+           file://fullscreen.patch;striplevel=2 \
            file://smarthome \
           "