aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/imports/dialogs/dialogs.pro7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/imports/dialogs/dialogs.pro b/src/imports/dialogs/dialogs.pro
index d1ae8fb80c..e6ca7a2147 100644
--- a/src/imports/dialogs/dialogs.pro
+++ b/src/imports/dialogs/dialogs.pro
@@ -37,7 +37,7 @@ HEADERS += \
qquickfontdialog_p.h \
qquickabstractdialog_p.h
-QML_FILES += \
+DIALOGS_QML_FILES += \
DefaultMessageDialog.qml \
WidgetMessageDialog.qml \
DefaultFileDialog.qml \
@@ -76,7 +76,7 @@ RESOURCE_CONTENT = \
"<RCC>" \
"<qresource prefix=\"/QtQuick/Dialogs\">"
-for(resourcefile, QML_FILES) {
+for(resourcefile, DIALOGS_QML_FILES) {
resourcefileabsolutepath = $$absolute_path($$resourcefile)
relativepath_in = $$relative_path($$resourcefileabsolutepath, $$_PRO_FILE_PWD_)
relativepath_out = $$relative_path($$resourcefileabsolutepath, $$OUT_PWD)
@@ -91,4 +91,7 @@ write_file($$GENERATED_RESOURCE_FILE, RESOURCE_CONTENT)|error("Aborting.")
RESOURCES += $$GENERATED_RESOURCE_FILE
+# In case of a debug build, deploy the QML files too
+CONFIG(debug, debug|release): QML_FILES += $$DIALOGS_QML_FILES
+
load(qml_plugin)