Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
eae88f02
Commit
eae88f02
authored
Apr 07, 2010
by
Christian Kamm
Browse files
QmlJSEditor: When looking for qml libraries scan the current doc's path.
Reviewed-by: Erik Verbruggen
parent
c3304116
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/qmljseditor/qmljsmodelmanager.cpp
View file @
eae88f02
...
...
@@ -235,8 +235,10 @@ static void findNewLibraryImports(const Document::Ptr &doc, const Snapshot &snap
QStringList
*
importedFiles
,
QSet
<
QString
>
*
scannedPaths
)
{
// scan library imports
QStringList
importPaths
=
modelManager
->
importPaths
();
importPaths
.
prepend
(
doc
->
path
());
foreach
(
const
QString
&
libraryImport
,
doc
->
bind
()
->
libraryImports
())
{
foreach
(
const
QString
&
importPath
,
modelManager
->
importPaths
()
)
{
foreach
(
const
QString
&
importPath
,
importPaths
)
{
QDir
dir
(
importPath
);
dir
.
cd
(
libraryImport
);
const
QString
targetPath
=
dir
.
absolutePath
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment