mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-26 15:59:50 -05:00
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:
parent
6337e673f9
commit
0c36c40a5d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user