diff options
author | Benjamin Poulain <benjamin.poulain@nokia.com> | 2009-10-02 17:19:19 (GMT) |
---|---|---|
committer | Benjamin Poulain <benjamin.poulain@nokia.com> | 2009-10-02 17:20:34 (GMT) |
commit | 3e2226476a29c0b8dab1516bdc9338073dd436b2 (patch) | |
tree | 8a5287d0b739ef283ef3b10f8baeab03667cda33 | |
parent | 3babdba3a64d48bf9f948cfb69b3536f0795f343 (diff) | |
download | Qt-3e2226476a29c0b8dab1516bdc9338073dd436b2.zip Qt-3e2226476a29c0b8dab1516bdc9338073dd436b2.tar.gz Qt-3e2226476a29c0b8dab1516bdc9338073dd436b2.tar.bz2 |
Enable multitouch on the affine demo
Reviewed-by: Denis Dzyubenko
Reviewed-by: Pierre Rossi
-rw-r--r-- | demos/affine/main.cpp | 4 |
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(); |