summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets/styles/qstyle
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/widgets/styles/qstyle')
-rw-r--r--tests/auto/widgets/styles/qstyle/tst_qstyle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/widgets/styles/qstyle/tst_qstyle.cpp b/tests/auto/widgets/styles/qstyle/tst_qstyle.cpp
index c733fadbf5..ef91d6d3d2 100644
--- a/tests/auto/widgets/styles/qstyle/tst_qstyle.cpp
+++ b/tests/auto/widgets/styles/qstyle/tst_qstyle.cpp
@@ -689,7 +689,7 @@ void tst_QStyle::lineUpLayoutTest(QStyle *style)
widget.setLayout(&layout);
widget.setStyle(style);
// propagate the style.
- foreach (QWidget *w, qFindChildren<QWidget *>(&widget))
+ foreach (QWidget *w, widget.findChildren<QWidget *>())
w->setStyle(style);
widget.show();
QVERIFY(QTest::qWaitForWindowExposed(&widget));