qte: only export touchscreen setting if ts exists
authorChase Maupin <chasemaupin03@gmail.com>
Fri, 10 Sep 2010 06:27:24 +0000 (06:27 +0000)
committerDenys Dmytriyenko <denis@denix.org>
Mon, 27 Sep 2010 15:47:49 +0000 (11:47 -0400)
* 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

Signed-off-by: Chase Maupin <chase.maupin@ti.com>
Acked-by: Denys Dmytriyenko <denis@denix.org>
Signed-off-by: Denys Dmytriyenko <denis@denix.org>
recipes/qt4/files/qte.sh
recipes/qt4/qt4-embedded.inc

index ddea77d..21d6ecb 100644 (file)
@@ -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
index d756a29..111716d 100644 (file)
@@ -4,7 +4,7 @@ LICENSE = "GPL QPL"
 PRIORITY = "optional"
 HOMEPAGE = "http://www.trolltech.com"
 DEPENDS += "directfb tslib"
-INC_PR = "r22"
+INC_PR = "r23"
 
 QT_BASE_NAME ?= "qt4-embedded"
 QT_BASE_LIB  ?= "libqt-embedded"