From 5a13402b51b7d05758b54ac975208b1f2ac2fa5c Mon Sep 17 00:00:00 2001 From: Felix Geyer Date: Sat, 12 Sep 2015 23:12:17 +0200 Subject: [PATCH] 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. --- tests/gui/TestGui.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/gui/TestGui.cpp b/tests/gui/TestGui.cpp index cf9629fb..549d0370 100644 --- a/tests/gui/TestGui.cpp +++ b/tests/gui/TestGui.cpp @@ -57,6 +57,7 @@ void TestGui::initTestCase() m_mainWindow = new MainWindow(); m_tabWidget = m_mainWindow->findChild("tabWidget"); m_mainWindow->show(); + m_mainWindow->activateWindow(); Tools::wait(50); QByteArray tmpData;