Explorar el Código

Fix ctkConsoleTest for Qt5.

Sascha Zelzer hace 11 años
padre
commit
b105afb5d6
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  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
 }
 
 // ----------------------------------------------------------------------------