summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin T. H. Sandsmark <martin.sandsmark@kde.org>2016-08-13 20:37:30 (GMT)
committerMartin T. H. Sandsmark <martin.sandsmark@kde.org>2016-08-13 20:37:30 (GMT)
commitcbe859eeec6938140c32a213f98587350ed0f48e (patch)
tree176c148cead6152feb4d0d73fb0b95b86a003302
parentf2e9633ea7603df965eb7fdddf875fa8e950fb4d (diff)
Port away from obsolete QTest functions
-rw-r--r--autotests/mainshelltest.cpp4
-rw-r--r--autotests/parttest.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/autotests/mainshelltest.cpp b/autotests/mainshelltest.cpp
index abb9b14..ec36d37 100644
--- a/autotests/mainshelltest.cpp
+++ b/autotests/mainshelltest.cpp
@@ -513,7 +513,7 @@ void MainShellTest::testSessionRestore()
int numDocs = 0;
foreach( Shell* shell, shells )
{
- QTest::qWaitForWindowShown( shell );
+ QTest::qWaitForWindowExposed( shell );
numDocs += shell->m_tabs.size();
}
@@ -569,7 +569,7 @@ void MainShellTest::testSessionRestore()
numDocs = 0;
foreach( Shell* shell, shells )
{
- QTest::qWaitForWindowShown( shell );
+ QTest::qWaitForWindowExposed( shell );
numDocs += shell->m_tabs.size();
}
diff --git a/autotests/parttest.cpp b/autotests/parttest.cpp
index f57511e..46d359d 100644
--- a/autotests/parttest.cpp
+++ b/autotests/parttest.cpp
@@ -179,7 +179,7 @@ void PartTest::testSelectText()
Okular::Part part(NULL, NULL, dummyArgs);
QVERIFY(openDocument(&part, QStringLiteral(KDESRCDIR "data/file2.pdf")));
part.widget()->show();
- QTest::qWaitForWindowShown(part.widget());
+ QTest::qWaitForWindowExposed(part.widget());
const int width = part.m_pageView->width();
const int height = part.m_pageView->height();
@@ -211,7 +211,7 @@ void PartTest::testClickInternalLink()
Okular::Part part(NULL, NULL, dummyArgs);
QVERIFY(openDocument(&part, QStringLiteral(KDESRCDIR "data/file2.pdf")));
part.widget()->show();
- QTest::qWaitForWindowShown(part.widget());
+ QTest::qWaitForWindowExposed(part.widget());
const int width = part.m_pageView->width();
const int height = part.m_pageView->height();