summaryrefslogtreecommitdiff
path: root/src/controls/plugin.h
diff options
context:
space:
mode:
authorCaroline Chao <caroline.chao@digia.com>2013-07-31 13:51:58 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-08-21 13:10:10 +0200
commitb2e5d1acb1aca93157a6d4d0a026153134f9ad01 (patch)
tree8b095329722d5781e3499a12bdc1534a0863dfa0 /src/controls/plugin.h
parentffbf8d724f39e9c8d05ae2049e8b79a61570e235 (diff)
downloadqtquickcontrols-b2e5d1acb1aca93157a6d4d0a026153134f9ad01.tar.gz
Add qml/js files in resource
All the qml and js files are embedded in the Qt Quick Controls plugin (for Controls, Styles and Private). If ApplicationWindow.qml is missing, loading the files from resource will be enabled. Otherwise, the files will be loaded from the local path. The purpose of this change is to make the deployment of Qt Quick Controls easier while keeping the development tasks convenient. With this solution: - It is only necessary to deploy the qmldir and the plugin qtquickcontrolsplugin found in the QtQuick/Controls folder. - By default the files used are the ones found in the local folder. Autocompletion and debugging capabilities remain unchanged. Task-number: QTBUG-31565 Change-Id: I938ebe261c3c35f9e3b066d82c81accd9750edc9 Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Diffstat (limited to 'src/controls/plugin.h')
-rw-r--r--src/controls/plugin.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/controls/plugin.h b/src/controls/plugin.h
index fe06e806..2acdf02a 100644
--- a/src/controls/plugin.h
+++ b/src/controls/plugin.h
@@ -55,6 +55,9 @@ class QtQuickControlsPlugin: public QQmlExtensionPlugin
public:
void registerTypes(const char *uri);
void initializeEngine(QQmlEngine *engine, const char *uri);
+private:
+ QString fileLocation() const;
+ bool isLoadedFromResource() const;
};
QT_END_NAMESPACE