summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/cocoa/qcocoahelpers.mm
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2020-03-31 19:23:18 +0200
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2020-06-04 10:39:53 +0200
commit1cee9cc5870b475b141dfa6ad84de2038a28d5b8 (patch)
tree999dfe9b3cb2743271d5475a808cd1c59fd095c1 /src/plugins/platforms/cocoa/qcocoahelpers.mm
parent9dd8e655cdd26eeaae30645b7fe013d9a696547f (diff)
macOS: Remove QtWidget dependency from platform plugin
The dialog helpers don't depend on widgets themselves, and should be built regardless of whether the widget dialogs are enabled, as these helpers can (and should) be used by other layers, such as Qt Quick. Change-Id: I1c66b474ab2f29748f1256aea90229c51c12a16f Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/plugins/platforms/cocoa/qcocoahelpers.mm')
-rw-r--r--src/plugins/platforms/cocoa/qcocoahelpers.mm4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/plugins/platforms/cocoa/qcocoahelpers.mm b/src/plugins/platforms/cocoa/qcocoahelpers.mm
index dab67268e3..f8c1242259 100644
--- a/src/plugins/platforms/cocoa/qcocoahelpers.mm
+++ b/src/plugins/platforms/cocoa/qcocoahelpers.mm
@@ -49,10 +49,6 @@
#include <private/qwindow_p.h>
#include <QtGui/private/qcoregraphics_p.h>
-#ifndef QT_NO_WIDGETS
-#include <QtWidgets/QWidget>
-#endif
-
#include <algorithm>
#include <mach-o/dyld.h>