summaryrefslogtreecommitdiffstats
path: root/src/plugins/generic/touchscreen/main.cpp
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.p.agocs@nokia.com>2011-07-18 13:44:47 +0300
committerQt by Nokia <qt-info@nokia.com>2011-07-19 15:00:46 +0200
commitba1b6f16ae042e5fdeb2e2c5968e1e5b1834ab88 (patch)
tree1a4c08b41efbe4f7f5a6f9ecf89a6e03847884e6 /src/plugins/generic/touchscreen/main.cpp
parent9581c90395086932d2e853864bf962b0896597d5 (diff)
Implement todos in touchscreen generic plug-in.
The patch implements periodic clearing of the point states when no activity occurs (i.e. no ev_syn is coming at all, meaning that most probably all the fingers are already up) and also moves the entire functionality into a separate thread even when used as a plug-in. Change-Id: Ib1daa738085b61af9b07eb8a284416e5a3fcabe8 Reviewed-on: http://codereview.qt.nokia.com/1744 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
Diffstat (limited to 'src/plugins/generic/touchscreen/main.cpp')
-rw-r--r--src/plugins/generic/touchscreen/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/generic/touchscreen/main.cpp b/src/plugins/generic/touchscreen/main.cpp
index 8ad756355d..ff476d1648 100644
--- a/src/plugins/generic/touchscreen/main.cpp
+++ b/src/plugins/generic/touchscreen/main.cpp
@@ -67,8 +67,8 @@ QObject* QTouchScreenPlugin::create(const QString &key,
const QString &spec)
{
if (!key.compare(QLatin1String("LinuxTouchScreen"), Qt::CaseInsensitive)) {
- QTouchScreenHandler *h = new QTouchScreenHandler(spec);
- h->addObserver(new QTouchEventSenderQPA);
+ QTouchScreenObserver *obs = new QTouchEventSenderQPA(spec);
+ QTouchScreenHandlerThread *h = new QTouchScreenHandlerThread(spec, obs);
return h;
}