From 5b21b6a7f0d9a9462a6b3fa45c32cb81feaaff49 Mon Sep 17 00:00:00 2001 From: Harald Fernengel Date: Mon, 29 Oct 2012 10:43:15 +0100 Subject: Fix build when libQtGui is not available Change-Id: I9e35d9302f58d283459f7e625c4e0b87fd1dc2bf Reviewed-by: Friedemann Kleint --- src/testlib/qtestsystem.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/testlib/qtestsystem.h b/src/testlib/qtestsystem.h index 2f3f499d47..094570bb8c 100644 --- a/src/testlib/qtestsystem.h +++ b/src/testlib/qtestsystem.h @@ -45,7 +45,9 @@ #include #include #include -#include +#ifdef QT_GUI_LIB +# include +#endif #ifdef QT_WIDGETS_LIB # include #endif @@ -69,6 +71,7 @@ namespace QTest } while (timer.elapsed() < ms); } +#ifdef QT_GUI_LIB inline static bool qWaitForWindowActive(QWindow *window, int timeout = 1000) { QElapsedTimer timer; @@ -112,6 +115,7 @@ namespace QTest } return window->isExposed(); } +#endif #ifdef QT_WIDGETS_LIB inline static bool qWaitForWindowActive(QWidget *widget, int timeout = 1000) -- cgit v1.2.3