summaryrefslogtreecommitdiffstats
path: root/src/plugins/generic/touchscreen/main.cpp
diff options
context:
space:
mode:
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;
}