mirror of
https://invent.kde.org/system/dolphin
synced 2024-08-22 01:40:02 +00:00
Fix -Wunused-result warnings
This commit is contained in:
parent
bf1081a824
commit
a90daf82b6
|
@ -47,7 +47,7 @@ void DolphinMainWindowTest::testClosingTabsWithSearchBoxVisible()
|
|||
m_mainWindow->openDirectories({ QUrl::fromLocalFile(QDir::homePath()) }, false);
|
||||
m_mainWindow->show();
|
||||
// Without this call the searchbox doesn't get FocusIn events.
|
||||
QTest::qWaitForWindowExposed(m_mainWindow.data());
|
||||
QVERIFY(QTest::qWaitForWindowExposed(m_mainWindow.data()));
|
||||
QVERIFY(m_mainWindow->isVisible());
|
||||
|
||||
auto tabWidget = m_mainWindow->findChild<DolphinTabWidget*>("tabWidget");
|
||||
|
|
|
@ -56,7 +56,7 @@ void KFileItemListViewTest::init()
|
|||
|
||||
m_graphicsView = new QGraphicsView();
|
||||
m_graphicsView->show();
|
||||
QTest::qWaitForWindowExposed(m_graphicsView);
|
||||
QVERIFY(QTest::qWaitForWindowExposed(m_graphicsView));
|
||||
}
|
||||
|
||||
void KFileItemListViewTest::cleanup()
|
||||
|
|
|
@ -143,7 +143,7 @@ void KItemListControllerTest::initTestCase()
|
|||
QVERIFY(spyDirectoryLoadingCompleted.wait());
|
||||
|
||||
m_container->show();
|
||||
QTest::qWaitForWindowExposed(m_container);
|
||||
QVERIFY(QTest::qWaitForWindowExposed(m_container));
|
||||
}
|
||||
|
||||
void KItemListControllerTest::cleanupTestCase()
|
||||
|
|
Loading…
Reference in a new issue