From 3e2226476a29c0b8dab1516bdc9338073dd436b2 Mon Sep 17 00:00:00 2001 From: Benjamin Poulain Date: Fri, 2 Oct 2009 19:19:19 +0200 Subject: Enable multitouch on the affine demo Reviewed-by: Denis Dzyubenko Reviewed-by: Pierre Rossi --- demos/affine/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/demos/affine/main.cpp b/demos/affine/main.cpp index 7d3d781..61fde96 100644 --- a/demos/affine/main.cpp +++ b/demos/affine/main.cpp @@ -54,8 +54,10 @@ int main(int argc, char **argv) xformWidget.setStyle(arthurStyle); QList widgets = qFindChildren(&xformWidget); - foreach (QWidget *w, widgets) + foreach (QWidget *w, widgets) { w->setStyle(arthurStyle); + w->setAttribute(Qt::WA_AcceptTouchEvents); + } xformWidget.show(); -- cgit v0.12