Activate window in TestGui.

It doesn't seem to get the focus automatically when run inside Xvfb.
QTRY_VERIFY(searchEdit->hasFocus()) failed as a result of this.
This commit is contained in:
Felix Geyer 2015-09-12 23:12:17 +02:00
parent 82aa02a980
commit 5a13402b51

View File

@ -57,6 +57,7 @@ void TestGui::initTestCase()
m_mainWindow = new MainWindow();
m_tabWidget = m_mainWindow->findChild<DatabaseTabWidget*>("tabWidget");
m_mainWindow->show();
m_mainWindow->activateWindow();
Tools::wait(50);
QByteArray tmpData;