diff options
| author | Christian Kamm <[email protected]> | 2010-03-16 16:34:33 +0100 |
|---|---|---|
| committer | Christian Kamm <[email protected]> | 2010-03-18 11:25:37 +0100 |
| commit | 9ea01cf5fb09f5bbef5e55cc0b0f04d48baa8eda (patch) | |
| tree | 5965b5276d4dc3a7bfad780c2787e0a2596d50a9 /src/libs/qmljs/qmljsbind.cpp | |
| parent | 62c41defb499d67798836772db6f1de89d1422db (diff) | |
Improve Qml code model import handling.
* Fill the snapshot with files that could be imported.
* Implement package imports.
* The qmldir file is not parsed yet.
Reviewed-by: Erik Verbruggen
Diffstat (limited to 'src/libs/qmljs/qmljsbind.cpp')
| -rw-r--r-- | src/libs/qmljs/qmljsbind.cpp | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/src/libs/qmljs/qmljsbind.cpp b/src/libs/qmljs/qmljsbind.cpp index 9d4aa676bc9..0c31052bfd0 100644 --- a/src/libs/qmljs/qmljsbind.cpp +++ b/src/libs/qmljs/qmljsbind.cpp @@ -59,11 +59,6 @@ QStringList Bind::includedScripts() const return _includedScripts; } -QStringList Bind::localImports() const -{ - return _localImports; -} - Interpreter::ObjectValue *Bind::currentObjectValue() const { return _currentObjectValue; @@ -210,16 +205,8 @@ bool Bind::visit(AST::Program *) return true; } -bool Bind::visit(UiImport *ast) +bool Bind::visit(UiImport *) { - if (ast->fileName) { - QString path = _doc->path(); - path += QLatin1Char('/'); - path += ast->fileName->asString(); - path = QDir::cleanPath(path); - _localImports.append(path); - } - return false; } |
