diff options
author | Benjamin Poulain <benjamin.poulain@nokia.com> | 2009-10-02 17:19:50 (GMT) |
---|---|---|
committer | Benjamin Poulain <benjamin.poulain@nokia.com> | 2009-10-02 17:20:35 (GMT) |
commit | e5e76c802d2f387d518534219d2296f3852a08dd (patch) | |
tree | 078d917241220105b3329d81838586894c8023b2 /demos | |
parent | 3e2226476a29c0b8dab1516bdc9338073dd436b2 (diff) | |
download | Qt-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.cpp | 4 |
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(); |