Browse Source

Fix ctkConsoleTest for Qt5.

Sascha Zelzer 11 years ago
parent
commit
b105afb5d6
1 changed files with 4 additions and 0 deletions
  1. 4 0
      Libs/Widgets/Testing/Cpp/ctkConsoleTest.cpp

+ 4 - 0
Libs/Widgets/Testing/Cpp/ctkConsoleTest.cpp

@@ -44,7 +44,11 @@ void ctkConsoleTester::testShow()
 {
   ctkConsole console;
   console.show();
+#if (QT_VERSION >= 0x50000)
+  QTest::qWaitForWindowActive(&console);
+#else
   QTest::qWaitForWindowShown(&console);
+#endif
 }
 
 // ----------------------------------------------------------------------------