summaryrefslogtreecommitdiffstats
path: root/demos/affine
diff options
context:
space:
mode:
Diffstat (limited to 'demos/affine')
-rw-r--r--demos/affine/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/affine/main.cpp b/demos/affine/main.cpp
index 24dd65c..92b7fab 100644
--- a/demos/affine/main.cpp
+++ b/demos/affine/main.cpp
@@ -53,7 +53,7 @@ int main(int argc, char **argv)
QStyle *arthurStyle = new ArthurStyle();
xformWidget.setStyle(arthurStyle);
- QList<QWidget *> widgets = qFindChildren<QWidget *>(&xformWidget);
+ QList<QWidget *> widgets = xformWidget.findChildren<QWidget *>();
foreach (QWidget *w, widgets) {
w->setStyle(arthurStyle);
w->setAttribute(Qt::WA_AcceptTouchEvents);