summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms
diff options
context:
space:
mode:
authorStephan Binner <stephan.binner@basyskom.com>2017-07-04 19:08:55 +0200
committerStephan Binner <stephan.binner@basyskom.com>2017-07-05 14:03:06 +0000
commit6a1046e17691c6e35c7384590ba241edb4082707 (patch)
tree3b04eb1e5ffbcf20d08e9448bf918de1dca47c8a /src/plugins/platforms
parent7d42293d2fcf466ebf2c99f49b4d15a73947691e (diff)
Fix macOS build for -no-widgets
Task-number: QTBUG-61780 Change-Id: Icb337c4daeb976a6616dc289a5ffd0ec9345834f Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Diffstat (limited to 'src/plugins/platforms')
-rw-r--r--src/plugins/platforms/cocoa/qcocoatheme.mm4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/platforms/cocoa/qcocoatheme.mm b/src/plugins/platforms/cocoa/qcocoatheme.mm
index faa3df39a0..66182e2580 100644
--- a/src/plugins/platforms/cocoa/qcocoatheme.mm
+++ b/src/plugins/platforms/cocoa/qcocoatheme.mm
@@ -44,7 +44,6 @@
#include <QtCore/QVariant>
-#include "qcocoacolordialoghelper.h"
#include "qcocoafontdialoghelper.h"
#include "qcocoasystemsettings.h"
#include "qcocoasystemtrayicon.h"
@@ -64,6 +63,9 @@
#ifdef QT_WIDGETS_LIB
#include <QtWidgets/qtwidgetsglobal.h>
+#if QT_CONFIG(colordialog)
+#include "qcocoacolordialoghelper.h"
+#endif
#if QT_CONFIG(filedialog)
#include "qcocoafiledialoghelper.h"
#endif