summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>2018-09-26 14:29:53 +0200
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>2018-10-01 05:22:13 +0000
commit352be75dec15cb333f58d0075d89b2ebc7a2e46b (patch)
tree805c3bbf9c4cfbbec5e03f391549d623864348cf
parentb854772676ff2b0e610b522279c997618496c050 (diff)
downloadqtquickcontrols-352be75dec15cb333f58d0075d89b2ebc7a2e46b.tar.gz
Fix build when filedialog feature is disabledv5.12.0-beta2v5.12.0-beta1
When the filedialog feature is disabled, we cannot include the headers for it, so we move the include into the #if block instead. Change-Id: I7b3556b570b8e7bd4aaed0ed8b1a0f4195b78975 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
-rw-r--r--src/widgets/qquickqfiledialog_p.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/widgets/qquickqfiledialog_p.h b/src/widgets/qquickqfiledialog_p.h
index d977e345..4988c1e0 100644
--- a/src/widgets/qquickqfiledialog_p.h
+++ b/src/widgets/qquickqfiledialog_p.h
@@ -51,11 +51,13 @@
// We mean it.
//
-#include <QFileDialog>
-#include "../dialogs/qquickabstractfiledialog_p.h"
+#include <QtWidgets/qtwidgetsglobal.h>
#if QT_CONFIG(filedialog)
+#include <QFileDialog>
+#include "../dialogs/qquickabstractfiledialog_p.h"
+
QT_BEGIN_NAMESPACE
class QQuickQFileDialog : public QQuickAbstractFileDialog