summaryrefslogtreecommitdiff
path: root/src/controls/controls.pro
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@digia.com>2014-06-24 10:00:28 +0200
committerCaroline Chao <caroline.chao@theqtcompany.com>2015-05-12 14:45:47 +0000
commitd63da9df3ca50c3c234b2622aa1d892d9ca27676 (patch)
tree72d0e644ed305cb25b8fe1a07bf94dc94fd36e04 /src/controls/controls.pro
parentf7b3f11b47768f47f625874c1bd45da4296c0f82 (diff)
downloadqtquickcontrols-d63da9df3ca50c3c234b2622aa1d892d9ca27676.tar.gz
Add support for compiling QML files ahead of time
All this patch really does it not try to load any .qml files off the disk but always load from qrc. Change-Id: Ie0e1252605486b627d8d42156736734f13bb5ff9 Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/controls/controls.pro')
-rw-r--r--src/controls/controls.pro3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/controls/controls.pro b/src/controls/controls.pro
index 7261b5c6..7dd176f0 100644
--- a/src/controls/controls.pro
+++ b/src/controls/controls.pro
@@ -38,7 +38,8 @@ CONTROLS_QML_FILES = \
ToolBar.qml \
ToolButton.qml
-QML_FILES += $$CONTROLS_QML_FILES
+!qtquickcompiler: QML_FILES += $$CONTROLS_QML_FILES
+qtquickcompiler: DEFINES += ALWAYS_LOAD_FROM_RESOURCES
SOURCES += $$PWD/plugin.cpp
HEADERS += $$PWD/plugin.h