summaryrefslogtreecommitdiffstats
path: root/demos/pathstroke/main.cpp
diff options
context:
space:
mode:
authorBenjamin Poulain <benjamin.poulain@nokia.com>2009-10-02 17:18:12 (GMT)
committerBenjamin Poulain <benjamin.poulain@nokia.com>2009-10-02 17:20:34 (GMT)
commit3babdba3a64d48bf9f948cfb69b3536f0795f343 (patch)
tree3babfdc352467dd01cb83ca75571f26c3d189c49 /demos/pathstroke/main.cpp
parent31cddefea97be65cdcc0970c237418b5b8a8e1d5 (diff)
downloadQt-3babdba3a64d48bf9f948cfb69b3536f0795f343.zip
Qt-3babdba3a64d48bf9f948cfb69b3536f0795f343.tar.gz
Qt-3babdba3a64d48bf9f948cfb69b3536f0795f343.tar.bz2
Add multitouch to the PathStroke demo
Add multitouch to the position of the path, and enable multitouch on the controls of the demo. Reviewed-by: Denis Dzyubenko Reviewed-by: Pierre Rossi
Diffstat (limited to 'demos/pathstroke/main.cpp')
-rw-r--r--demos/pathstroke/main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/demos/pathstroke/main.cpp b/demos/pathstroke/main.cpp
index 60520f1..67f4639 100644
--- a/demos/pathstroke/main.cpp
+++ b/demos/pathstroke/main.cpp
@@ -57,8 +57,10 @@ int main(int argc, char **argv)
QStyle *arthurStyle = new ArthurStyle();
pathStrokeWidget.setStyle(arthurStyle);
QList<QWidget *> widgets = qFindChildren<QWidget *>(&pathStrokeWidget);
- foreach (QWidget *w, widgets)
+ foreach (QWidget *w, widgets) {
w->setStyle(arthurStyle);
+ w->setAttribute(Qt::WA_AcceptTouchEvents);
+ }
if (smallScreen)
pathStrokeWidget.showFullScreen();