From aaaf60aeab64c4e9189dae6925a89e0b367e3dcf Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Tue, 24 Jul 2012 14:29:01 +0200 Subject: Remove usage of deprecated qWaitForWindowShown(QWidget *) method. Remove usages from autotests with the exception of widgets/kernel, widgets/widgets and widgets/graphicsview. Change-Id: I917b2857ed0cd07a6b3dbcd69244f558086c6586 Reviewed-by: Stephen Kelly --- tests/auto/other/baselineexample/tst_baselineexample.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/auto/other/baselineexample') diff --git a/tests/auto/other/baselineexample/tst_baselineexample.cpp b/tests/auto/other/baselineexample/tst_baselineexample.cpp index 78e531a9f7..ca803c4189 100644 --- a/tests/auto/other/baselineexample/tst_baselineexample.cpp +++ b/tests/auto/other/baselineexample/tst_baselineexample.cpp @@ -70,7 +70,7 @@ void tst_BaselineExample::testBasicUsage() QPushButton b("Press me!"); b.resize(100, 50); b.show(); - QTest::qWaitForWindowShown(&b); + QVERIFY(QTest::qWaitForWindowExposed(&b)); QImage img1 = b.grab().toImage(); QVERIFY(!img1.isNull()); @@ -84,7 +84,7 @@ void tst_BaselineExample::testMultipleImages() QPushButton b("Press me!"); b.resize(100, 50); b.show(); - QTest::qWaitForWindowShown(&b); + QVERIFY(QTest::qWaitForWindowExposed(&b)); QBASELINE_CHECK(b.grab().toImage(), "text1"); b.setText("Kick me!"); @@ -110,7 +110,7 @@ void tst_BaselineExample::testDataDriven() QPushButton b(label); b.resize(100, 50); b.show(); - QTest::qWaitForWindowShown(&b); + QVERIFY(QTest::qWaitForWindowExposed(&b)); QBASELINE_TEST(b.grab().toImage()); } @@ -136,7 +136,7 @@ void tst_BaselineExample::testDataDrivenChecksum() QPushButton b(label); b.resize(100, 50); b.show(); - QTest::qWaitForWindowShown(&b); + QVERIFY(QTest::qWaitForWindowExposed(&b)); QBASELINE_TEST(b.grab().toImage()); } -- cgit v1.2.3