Skip to contentSkip to conversation

qte: only export touchscreen setting if ts exists

PATCH In review Chase Maupin 2 participants 2 messages Sep 10, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qte: only export touchscreen setting if ts exists

* Changed the qte.sh script to check for whether or not the touchscreen exists before exporting QWS_MOUSE_PROTO to use the touchscreen. This is so that devices that don't have a touchscreen can use the regular mouse support.
* Bumped the PR

---
 recipes/qt4/files/qte.sh     |    8 +++++---
 recipes/qt4/qt4-embedded.inc |    2 +-
 2 files changed, 6 insertions(+), 4 deletions(-)
recipes/qt4/files/qte.sh +5 -3
index ddea77d..21d6ecb 100644
@@ -1,5 +1,7 @@
 #!/bin/sh
 
-QWS_MOUSE_PROTO=Tslib:/dev/input/touchscreen0
-
-export QWS_MOUSE_PROTO
+if [ -e /dev/input/touchscreen0 ]
+then
+    QWS_MOUSE_PROTO=Tslib:/dev/input/touchscreen0
+    export QWS_MOUSE_PROTO
+fi
recipes/qt4/qt4-embedded.inc +1 -1
index 61cd3bf..d756a29 100644
@@ -4,7 +4,7 @@ LICENSE = "GPL QPL"
 PRIORITY = "optional"
 HOMEPAGE = "http://www.trolltech.com"
 DEPENDS += "directfb tslib"
-INC_PR = "r21"
+INC_PR = "r22"
 
 QT_BASE_NAME ?= "qt4-embedded"
 QT_BASE_LIB  ?= "libqt-embedded"
Signature · 1 line
1.7.0.4
Acked-by on v1 1/1
#1 lore raw
Quoted 7 lines · Chase Maupin

* Changed the qte.sh script to check for whether or not the touchscreen exists before exporting QWS_MOUSE_PROTO to use the touchscreen. This is so that devices that don't have a touchscreen can use the regular mouse support.
* Bumped the PR

Quoted 41 lines
---
 recipes/qt4/files/qte.sh     |    8 +++++---
 recipes/qt4/qt4-embedded.inc |    2 +-
 2 files changed, 6 insertions(+), 4 deletions(-)
recipes/qt4/files/qte.sh +5 -3
index ddea77d..21d6ecb 100644
@@ -1,5 +1,7 @@
 #!/bin/sh
 
-QWS_MOUSE_PROTO=Tslib:/dev/input/touchscreen0
-
-export QWS_MOUSE_PROTO
+if [ -e /dev/input/touchscreen0 ]
+then
+    QWS_MOUSE_PROTO=Tslib:/dev/input/touchscreen0
+    export QWS_MOUSE_PROTO
+fi
recipes/qt4/qt4-embedded.inc +1 -1
index 61cd3bf..d756a29 100644
@@ -4,7 +4,7 @@ LICENSE = "GPL QPL"
 PRIORITY = "optional"
 HOMEPAGE = "http://www.trolltech.com"
 DEPENDS += "directfb tslib"
-INC_PR = "r21"
+INC_PR = "r22"
 
 QT_BASE_NAME ?= "qt4-embedded"
 QT_BASE_LIB  ?= "libqt-embedded"
Signature · 7 lines
1.7.0.4


_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel