diff options
author | Harald Fernengel <harald.fernengel@nokia.com> | 2012-10-29 10:43:15 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-11-01 18:16:22 +0100 |
commit | 5b21b6a7f0d9a9462a6b3fa45c32cb81feaaff49 (patch) | |
tree | 34281d9ad475dc6ab5e2656da76871bb67ea2e30 /src | |
parent | 196c5bfe0fdd245e1819a0247afca0c3371fc0d5 (diff) |
Fix build when libQtGui is not available
Change-Id: I9e35d9302f58d283459f7e625c4e0b87fd1dc2bf
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/testlib/qtestsystem.h | 6 |
1 files changed, 5 insertions, 1 deletions
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 <QtTest/qtestcase.h> #include <QtCore/qcoreapplication.h> #include <QtCore/qelapsedtimer.h> -#include <QtGui/QWindow> +#ifdef QT_GUI_LIB +# include <QtGui/QWindow> +#endif #ifdef QT_WIDGETS_LIB # include <QtWidgets/QWidget> #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) |