summaryrefslogtreecommitdiffstats
path: root/src/testlib/qtestmouse.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/testlib/qtestmouse.h')
-rw-r--r--src/testlib/qtestmouse.h7
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