From: "Franklin S. Cooper Jr" <[email protected]>

* There are important Qt environment variables that needs to be set and those
  variables are only being set within Matrix's init script.
* This causes problems when your trying to manually run a Qt application
  outside of Matrix since you need to manually export the proper Qt specific
  environment variables again.
* Override the default qte.sh to add additional Arago specific Qt env variables
---
 meta-arago-distro/recipes-qt/qt4/arago-qt4.inc |    3 ++-
 meta-arago-distro/recipes-qt/qt4/files/qte.sh  |   11 +++++++++++
 2 files changed, 13 insertions(+), 1 deletion(-)
 create mode 100644 meta-arago-distro/recipes-qt/qt4/files/qte.sh

diff --git a/meta-arago-distro/recipes-qt/qt4/arago-qt4.inc 
b/meta-arago-distro/recipes-qt/qt4/arago-qt4.inc
index 715092e..0f5e117 100644
--- a/meta-arago-distro/recipes-qt/qt4/arago-qt4.inc
+++ b/meta-arago-distro/recipes-qt/qt4/arago-qt4.inc
@@ -1,7 +1,7 @@
 # Common file for patches or tweaks that are needed by qt4-embedded and
 # qt4-embedded-gles
 
-PR := "${PR}-arago5"
+PR := "${PR}-arago7"
 
 # look for files in this layer first
 FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
@@ -16,4 +16,5 @@ LICENSE = "LGPLv2.1"
 
 SRC_URI += "file://0001-PATCH-make-demos-maximized-for-TISDK-use.patch \
             file://0002-qwslock-messages.patch \
+            file://qte.sh \
 "
diff --git a/meta-arago-distro/recipes-qt/qt4/files/qte.sh 
b/meta-arago-distro/recipes-qt/qt4/files/qte.sh
new file mode 100644
index 0000000..3d656f3
--- /dev/null
+++ b/meta-arago-distro/recipes-qt/qt4/files/qte.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+### QT Environment Variables ###
+export QWS_MOUSE_PROTO=Auto
+
+
+# Set the QWS_MOUSE_PROTO for touchscreen if it exists
+if [ -e /dev/input/touchscreen0 ]
+then
+    export QWS_MOUSE_PROTO=Tslib:/dev/input/touchscreen0
+fi
-- 
1.7.9.5

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

Reply via email to