diff options
author | Lars Knoll <lars.knoll@nokia.com> | 2012-01-12 14:24:39 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-01-12 14:50:28 +0100 |
commit | 265ce6071826304b25717af3fa4779ea98969e24 (patch) | |
tree | 88b3ba8078fcf816e4c0282d0db472e9b3443f69 /src/testlib/qtestmouse.h | |
parent | 1453f74cc5617894c98f09428c3062dfa448044e (diff) |
Compile if the header files from QtWidgets are unavailable
Change-Id: I0a774fc1492e882bc6c02d913e6dace189fdb992
Reviewed-by: Kevin Simons <kevin.simons@nokia.com>
Diffstat (limited to 'src/testlib/qtestmouse.h')
-rw-r--r-- | src/testlib/qtestmouse.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/testlib/qtestmouse.h b/src/testlib/qtestmouse.h index cca556b8ba..6c68b057c1 100644 --- a/src/testlib/qtestmouse.h +++ b/src/testlib/qtestmouse.h @@ -53,11 +53,14 @@ #include <QtTest/qtestspontaneevent.h> #include <QtCore/qpoint.h> #include <QtCore/qstring.h> -#include <QtWidgets/qapplication.h> #include <QtGui/qevent.h> -#include <QtWidgets/qwidget.h> #include <QtGui/qwindowsysteminterface_qpa.h> +#ifdef QT_WIDGETS_LIB +#include <QtWidgets/qapplication.h> +#include <QtWidgets/qwidget.h> +#endif + QT_BEGIN_HEADER QT_BEGIN_NAMESPACE |