36 lines
1.3 KiB
Diff
36 lines
1.3 KiB
Diff
From 3642ea2f7eff14c0835385f28a13514b806eba32 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Eric=20B=C3=A9nard?= <eric@eukrea.com>
|
|
Date: Mon, 27 May 2013 18:32:37 +0200
|
|
Subject: [PATCH 14/22] enables tslib device to be read from env variable
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
from :
|
|
https://github.com/prabindh/qt-configs/blob/master/qt5_1.0_Feb13/tslib.patch
|
|
|
|
Signed-off-by: Eric Bénard <eric@eukrea.com>
|
|
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
|
|
---
|
|
src/plugins/generic/tslib/qtslib.cpp | 4 +++-
|
|
1 file changed, 3 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/src/plugins/generic/tslib/qtslib.cpp b/src/plugins/generic/tslib/qtslib.cpp
|
|
index 6986fd5..2ed4a69 100644
|
|
--- a/src/plugins/generic/tslib/qtslib.cpp
|
|
+++ b/src/plugins/generic/tslib/qtslib.cpp
|
|
@@ -64,7 +64,9 @@ QTsLibMouseHandler::QTsLibMouseHandler(const QString &key,
|
|
qDebug() << "QTsLibMouseHandler" << key << specification;
|
|
setObjectName(QLatin1String("TSLib Mouse Handler"));
|
|
|
|
- QByteArray device = "/dev/input/event1";
|
|
+ QByteArray device = qgetenv("TSLIB_TSDEVICE");
|
|
+ if(device.isEmpty())
|
|
+ device = "/dev/input/event1";
|
|
if (specification.startsWith("/dev/"))
|
|
device = specification.toLocal8Bit();
|
|
|
|
--
|
|
1.8.3.1
|
|
|