diff options
Diffstat (limited to 'recipes-qt/qt5/qtbase-5.0.2/0014-enables-tslib-device-to-be-read-from-env-variable.patch')
-rw-r--r-- | recipes-qt/qt5/qtbase-5.0.2/0014-enables-tslib-device-to-be-read-from-env-variable.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/recipes-qt/qt5/qtbase-5.0.2/0014-enables-tslib-device-to-be-read-from-env-variable.patch b/recipes-qt/qt5/qtbase-5.0.2/0014-enables-tslib-device-to-be-read-from-env-variable.patch new file mode 100644 index 00000000..306e1379 --- /dev/null +++ b/recipes-qt/qt5/qtbase-5.0.2/0014-enables-tslib-device-to-be-read-from-env-variable.patch | |||
@@ -0,0 +1,34 @@ | |||
1 | From f8336efd143109c3478e5548360248f99b645548 Mon Sep 17 00:00:00 2001 | ||
2 | From: =?UTF-8?q?Eric=20B=C3=A9nard?= <eric@eukrea.com> | ||
3 | Date: Mon, 27 May 2013 18:32:37 +0200 | ||
4 | Subject: [PATCH 14/16] enables tslib device to be read from env variable | ||
5 | MIME-Version: 1.0 | ||
6 | Content-Type: text/plain; charset=UTF-8 | ||
7 | Content-Transfer-Encoding: 8bit | ||
8 | |||
9 | from : | ||
10 | https://github.com/prabindh/qt-configs/blob/master/qt5_1.0_Feb13/tslib.patch | ||
11 | |||
12 | Signed-off-by: Eric Bénard <eric@eukrea.com> | ||
13 | --- | ||
14 | src/plugins/generic/tslib/qtslib.cpp | 4 +++- | ||
15 | 1 file changed, 3 insertions(+), 1 deletion(-) | ||
16 | |||
17 | diff --git a/src/plugins/generic/tslib/qtslib.cpp b/src/plugins/generic/tslib/qtslib.cpp | ||
18 | index 6986fd5..2ed4a69 100644 | ||
19 | --- a/src/plugins/generic/tslib/qtslib.cpp | ||
20 | +++ b/src/plugins/generic/tslib/qtslib.cpp | ||
21 | @@ -64,7 +64,9 @@ QTsLibMouseHandler::QTsLibMouseHandler(const QString &key, | ||
22 | qDebug() << "QTsLibMouseHandler" << key << specification; | ||
23 | setObjectName(QLatin1String("TSLib Mouse Handler")); | ||
24 | |||
25 | - QByteArray device = "/dev/input/event1"; | ||
26 | + QByteArray device = qgetenv("TSLIB_TSDEVICE"); | ||
27 | + if(device.isEmpty()) | ||
28 | + device = "/dev/input/event1"; | ||
29 | if (specification.startsWith("/dev/")) | ||
30 | device = specification.toLocal8Bit(); | ||
31 | |||
32 | -- | ||
33 | 1.8.2.1 | ||
34 | |||