summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets/widgets/qmdisubwindow
diff options
context:
space:
mode:
authorDebao Zhang <hello@debao.me>2013-03-27 22:16:32 +0800
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-03-27 19:34:22 +0100
commitf6e739d9e3125d3866651b896bdb057f1bfb4da9 (patch)
treedb59223373a94ad38798b3f7c5ea0b27933acf15 /tests/auto/widgets/widgets/qmdisubwindow
parent8d009b38c8c1ce3e63cc28190250b766a24774da (diff)
QtWidgets tests: Replace qFindChild{ren} with QObject::findChild{ren}
Change-Id: I79a26387bcce0d7f79f4f9f70293e97dae52f949 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Diffstat (limited to 'tests/auto/widgets/widgets/qmdisubwindow')
-rw-r--r--tests/auto/widgets/widgets/qmdisubwindow/tst_qmdisubwindow.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/widgets/widgets/qmdisubwindow/tst_qmdisubwindow.cpp b/tests/auto/widgets/widgets/qmdisubwindow/tst_qmdisubwindow.cpp
index 477bab8a37..5b146cf443 100644
--- a/tests/auto/widgets/widgets/qmdisubwindow/tst_qmdisubwindow.cpp
+++ b/tests/auto/widgets/widgets/qmdisubwindow/tst_qmdisubwindow.cpp
@@ -598,7 +598,7 @@ void tst_QMdiSubWindow::showShaded()
QWidget *mouseReceiver = 0;
#ifdef Q_OS_MAC
if (window->style()->inherits("QMacStyle"))
- mouseReceiver = qFindChild<QSizeGrip *>(window);
+ mouseReceiver = window->findChild<QSizeGrip *>();
else
#endif
mouseReceiver = window;
@@ -707,7 +707,7 @@ void tst_QMdiSubWindow::setOpaqueResizeAndMove()
QWidget *mouseReceiver = 0;
if (window->style()->inherits("QMacStyle"))
- mouseReceiver = qFindChild<QSizeGrip *>(window);
+ mouseReceiver = window->findChild<QSizeGrip *>();
else
mouseReceiver = window;
QVERIFY(mouseReceiver);
@@ -1447,12 +1447,12 @@ void tst_QMdiSubWindow::defaultSizeGrip()
// QSizeGrip on windows with decoration.
QMdiSubWindow *windowWithDecoration = mdiArea.addSubWindow(new QWidget);
windowWithDecoration->show();
- QVERIFY(qFindChild<QSizeGrip *>(windowWithDecoration));
+ QVERIFY(windowWithDecoration->findChild<QSizeGrip *>());
// ...but not on windows without decoration (Qt::FramelessWindowHint).
QMdiSubWindow *windowWithoutDecoration = mdiArea.addSubWindow(new QWidget, Qt::FramelessWindowHint);
windowWithoutDecoration->show();
- QVERIFY(!qFindChild<QSizeGrip *>(windowWithoutDecoration));
+ QVERIFY(!windowWithoutDecoration->findChild<QSizeGrip *>());
}
#endif