diff options
author | mae <qt-info@nokia.com> | 2010-02-24 16:03:30 (GMT) |
---|---|---|
committer | mae <qt-info@nokia.com> | 2010-02-24 16:03:30 (GMT) |
commit | 5867481c77e960a7d7b4cb3e9a7a4dffb9d68e92 (patch) | |
tree | 314e4e2f65daadec5e5faff76700d7c2c1908d1e /src/corelib/global | |
parent | ff92c1cd2bf5171637b51d5eb646b165d6f11ec3 (diff) | |
download | Qt-5867481c77e960a7d7b4cb3e9a7a4dffb9d68e92.zip Qt-5867481c77e960a7d7b4cb3e9a7a4dffb9d68e92.tar.gz Qt-5867481c77e960a7d7b4cb3e9a7a4dffb9d68e92.tar.bz2 |
Add support for qml imports directory in configure, qmake, and qmlengine
Diffstat (limited to 'src/corelib/global')
-rw-r--r-- | src/corelib/global/qlibraryinfo.cpp | 6 | ||||
-rw-r--r-- | src/corelib/global/qlibraryinfo.h | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/src/corelib/global/qlibraryinfo.cpp b/src/corelib/global/qlibraryinfo.cpp index a9ea44a..9690406 100644 --- a/src/corelib/global/qlibraryinfo.cpp +++ b/src/corelib/global/qlibraryinfo.cpp @@ -266,6 +266,11 @@ QLibraryInfo::location(LibraryLocation loc) path = QT_CONFIGURE_PLUGINS_PATH; break; #endif +#ifdef QT_CONFIGURE_IMPORTS_PATH + case ImportsPath: + path = QT_CONFIGURE_IMPORTS_PATH; + break; +#endif #ifdef QT_CONFIGURE_DATA_PATH case DataPath: path = QT_CONFIGURE_DATA_PATH; @@ -470,6 +475,7 @@ QLibraryInfo::location(LibraryLocation loc) \value LibrariesPath The location of installed librarires. \value BinariesPath The location of installed Qt binaries (tools and applications). \value PluginsPath The location of installed Qt plugins. + \value ImportsPath The location of installed QML extensions to import. \value DataPath The location of general Qt data. \value TranslationsPath The location of translation information for Qt strings. \value SettingsPath The location for Qt settings. diff --git a/src/corelib/global/qlibraryinfo.h b/src/corelib/global/qlibraryinfo.h index e64b760..4a7ba06 100644 --- a/src/corelib/global/qlibraryinfo.h +++ b/src/corelib/global/qlibraryinfo.h @@ -76,7 +76,8 @@ public: TranslationsPath, SettingsPath, DemosPath, - ExamplesPath + ExamplesPath, + ImportsPath }; static QString location(LibraryLocation); // ### Qt 5: consider renaming it to path() |