diff options
author | Eric BENARD <eric@eukrea.com> | 2013-05-27 23:43:53 +0000 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2013-05-28 10:55:11 +0200 |
commit | f52b59a5cc9ddfb0ede39194e284c858bfd0cbd8 (patch) | |
tree | 0a9f78660182a932e4047d94e1d697f76d36dee4 /recipes-qt/qt5/qtbase-5.0.2/0001-enables-tslib-device-to-be-read-from-env-variable.patch | |
parent | 7994fc13da2971376621e9d8653f89e1d9323eaa (diff) | |
download | meta-qt5-f52b59a5cc9ddfb0ede39194e284c858bfd0cbd8.tar.gz |
qtbase: add option to enable tslib support
- the tslib support is not enabled by default and configure doesn't have any option
to active it, so add the option to the build system,
- patch tslib support to get the device from the environment variable
(patch taken from https://github.com/prabindh/qt-configs/blob/master/qt5_1.0_Feb13/tslib.patch
- provide variable to enable tslib support in a bbappend (disabled by default)
- tested on an i.MX5x target with qt 5.0.2
TODO : test with 5.0, 5.0.1 and _git
Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'recipes-qt/qt5/qtbase-5.0.2/0001-enables-tslib-device-to-be-read-from-env-variable.patch')
-rw-r--r-- | recipes-qt/qt5/qtbase-5.0.2/0001-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/0001-enables-tslib-device-to-be-read-from-env-variable.patch b/recipes-qt/qt5/qtbase-5.0.2/0001-enables-tslib-device-to-be-read-from-env-variable.patch new file mode 100644 index 00000000..77ddcba3 --- /dev/null +++ b/recipes-qt/qt5/qtbase-5.0.2/0001-enables-tslib-device-to-be-read-from-env-variable.patch | |||
@@ -0,0 +1,34 @@ | |||
1 | From cb7d4b978d7b29e3f4ef5dba1ca1319ccd289a0d 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] 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.1.4 | ||
34 | |||