summaryrefslogtreecommitdiffstats
path: root/demos/affine
diff options
context:
space:
mode:
authorBenjamin Poulain <benjamin.poulain@nokia.com>2009-10-02 17:19:19 (GMT)
committerBenjamin Poulain <benjamin.poulain@nokia.com>2009-10-02 17:20:34 (GMT)
commit3e2226476a29c0b8dab1516bdc9338073dd436b2 (patch)
tree8a5287d0b739ef283ef3b10f8baeab03667cda33 /demos/affine
parent3babdba3a64d48bf9f948cfb69b3536f0795f343 (diff)
downloadQt-3e2226476a29c0b8dab1516bdc9338073dd436b2.zip
Qt-3e2226476a29c0b8dab1516bdc9338073dd436b2.tar.gz
Qt-3e2226476a29c0b8dab1516bdc9338073dd436b2.tar.bz2
Enable multitouch on the affine demo
Reviewed-by: Denis Dzyubenko Reviewed-by: Pierre Rossi
Diffstat (limited to 'demos/affine')
-rw-r--r--demos/affine/main.cpp4
1 files changed, 3 insertions, 1 deletions
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<QWidget *> widgets = qFindChildren<QWidget *>(&xformWidget);
- foreach (QWidget *w, widgets)
+ foreach (QWidget *w, widgets) {
w->setStyle(arthurStyle);
+ w->setAttribute(Qt::WA_AcceptTouchEvents);
+ }
xformWidget.show();