diff options
author | Kari Oikarinen <kari.oikarinen@qt.io> | 2018-02-28 14:46:25 +0200 |
---|---|---|
committer | Kari Oikarinen <kari.oikarinen@qt.io> | 2018-02-28 12:55:31 +0000 |
commit | cde00a642be6512cbdb7ae03293d62b6639301f7 (patch) | |
tree | ba3313d122be74befcd12352f70cbfe1f0e04d10 /tests/auto/qareaseries/tst_qareaseries.cpp | |
parent | 2dce9ca9da15add01d7e81b8a98223a36262d829 (diff) |
Don't use deprecated QTest::qWaitForWindowShown()
Use QTest::qWaitForWindowExposed() instead. Also wrap it in QVERIFY, so that
failed waits fail immediately.
Change-Id: I658d2faa89c42bd190de4bf53179b26b8f5d1b6c
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Diffstat (limited to 'tests/auto/qareaseries/tst_qareaseries.cpp')
-rw-r--r-- | tests/auto/qareaseries/tst_qareaseries.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qareaseries/tst_qareaseries.cpp b/tests/auto/qareaseries/tst_qareaseries.cpp index 47494328..d2dc2a15 100644 --- a/tests/auto/qareaseries/tst_qareaseries.cpp +++ b/tests/auto/qareaseries/tst_qareaseries.cpp @@ -123,7 +123,7 @@ void tst_QAreaSeries::areaSeries() series->attachAxis(m_axisX); series->attachAxis(m_axisY); m_view->show(); - QTest::qWaitForWindowShown(m_view); + QVERIFY(QTest::qWaitForWindowExposed(m_view)); checkPixels(m_backgroundColor, m_brushColor, m_backgroundColor); } @@ -137,7 +137,7 @@ void tst_QAreaSeries::dynamicEdgeSeriesChange() series->attachAxis(m_axisX); series->attachAxis(m_axisY); m_view->show(); - QTest::qWaitForWindowShown(m_view); + QVERIFY(QTest::qWaitForWindowExposed(m_view)); checkPixels(m_backgroundColor, m_backgroundColor, m_backgroundColor); |