Commit cbe859ee authored by Martin Tobias Holmedahl Sandsmark's avatar Martin Tobias Holmedahl Sandsmark
Browse files

Port away from obsolete QTest functions

parent f2e9633e
......@@ -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();
}
......
......@@ -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();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment