summaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorBenjamin Poulain <benjamin.poulain@nokia.com>2009-10-02 17:19:50 (GMT)
committerBenjamin Poulain <benjamin.poulain@nokia.com>2009-10-02 17:20:35 (GMT)
commite5e76c802d2f387d518534219d2296f3852a08dd (patch)
tree078d917241220105b3329d81838586894c8023b2 /demos
parent3e2226476a29c0b8dab1516bdc9338073dd436b2 (diff)
downloadQt-e5e76c802d2f387d518534219d2296f3852a08dd.zip
Qt-e5e76c802d2f387d518534219d2296f3852a08dd.tar.gz
Qt-e5e76c802d2f387d518534219d2296f3852a08dd.tar.bz2
Enable multitouch on the Gradients demo
Reviewed-by: Denis Dzyubenko Reviewed-by: Pierre Rossi
Diffstat (limited to 'demos')
-rw-r--r--demos/gradients/main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/demos/gradients/main.cpp b/demos/gradients/main.cpp
index 9ffcdd1..c70cdb7 100644
--- a/demos/gradients/main.cpp
+++ b/demos/gradients/main.cpp
@@ -53,8 +53,10 @@ int main(int argc, char **argv)
QStyle *arthurStyle = new ArthurStyle();
gradientWidget.setStyle(arthurStyle);
QList<QWidget *> widgets = qFindChildren<QWidget *>(&gradientWidget);
- foreach (QWidget *w, widgets)
+ foreach (QWidget *w, widgets) {
w->setStyle(arthurStyle);
+ w->setAttribute(Qt::WA_AcceptTouchEvents);
+ }
gradientWidget.show();
return app.exec();