Make TestGui work with offscreen QPA.

For some reason hasFocus() returns true here.
Use isVisible() instead as it's a stronger check anyway.
This commit is contained in:
Felix Geyer 2015-11-01 13:37:03 +01:00
parent 6337e673f9
commit 0c36c40a5d

View File

@ -185,7 +185,7 @@ void TestGui::testSearch()
QLineEdit* searchEdit = m_dbWidget->findChild<QLineEdit*>("searchEdit");
QToolButton* clearSearch = m_dbWidget->findChild<QToolButton*>("clearButton");
QVERIFY(!searchEdit->hasFocus());
QVERIFY(!searchEdit->isVisible());
// Enter search
QTest::mouseClick(searchActionWidget, Qt::LeftButton);