diff options
Diffstat (limited to 'src/controls/plugin.cpp')
-rw-r--r-- | src/controls/plugin.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/controls/plugin.cpp b/src/controls/plugin.cpp index 7e98509d..e6868569 100644 --- a/src/controls/plugin.cpp +++ b/src/controls/plugin.cpp @@ -188,11 +188,15 @@ QString QtQuickControlsPlugin::fileLocation() const bool QtQuickControlsPlugin::isLoadedFromResource() const { +#if defined(ALWAYS_LOAD_FROM_RESOURCES) + return true; +#else // If one file is missing, it will load all the files from the resource QFile file(baseUrl().toLocalFile() + "/ApplicationWindow.qml"); if (!file.exists()) return true; return false; +#endif } QT_END_NAMESPACE |