diff options
author | Fawzi Mohamed <[email protected]> | 2013-05-21 11:35:15 +0200 |
---|---|---|
committer | Fawzi Mohamed <[email protected]> | 2013-06-03 10:32:13 +0200 |
commit | 5a4cdc11cbf10e205e30bf118bc4e672a4d198af (patch) | |
tree | fac3cf6c123588121af2c69a37f535680ec26330 /src/libs/qmljs/qmljsdocument.h | |
parent | 69a9dc3f1c411a3c10990102a1ae31fab28dc9d2 (diff) |
qmljs: adding qrc support
Qmljs now keeps a cache of parsed qrc files, and can resolve "qrc:" links.
This breaks the assumption that the name that the qml files has on
the filesystem is the one that qml sees, and that contents of
directories can be found just looking at file whose path starts with the
directory path.
Currently the first file is used when multiple qrc files contain the same
path, but support for strict and weak path resolving is already there.
At the moment only qrc files for projects that call updateQmljsCodeModel
are updated.
ChangeLog: QmljsSupport: Imports using qrc links are resolved.
Task-number: QTCREATORBUG-8953
Change-Id: I695fac2692af2417d49c192c580a1c2e7b4873f4
Reviewed-by: Fawzi Mohamed <[email protected]>
Diffstat (limited to 'src/libs/qmljs/qmljsdocument.h')
-rw-r--r-- | src/libs/qmljs/qmljsdocument.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libs/qmljs/qmljsdocument.h b/src/libs/qmljs/qmljsdocument.h index e18f95d475b..56ebb7061e8 100644 --- a/src/libs/qmljs/qmljsdocument.h +++ b/src/libs/qmljs/qmljsdocument.h @@ -65,6 +65,7 @@ public: static bool isQmlLikeLanguage(Language languge); static bool isFullySupportedLanguage(Language language); + static bool isQmlLikeOrJsLanguage(Language language); protected: Document(const QString &fileName, Language language); |