From ba1b6f16ae042e5fdeb2e2c5968e1e5b1834ab88 Mon Sep 17 00:00:00 2001 From: Laszlo Agocs Date: Mon, 18 Jul 2011 13:44:47 +0300 Subject: Implement todos in touchscreen generic plug-in. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Jørgen Lind --- src/plugins/generic/touchscreen/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/plugins/generic/touchscreen/main.cpp') 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; } -- cgit v1.2.3