Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
01c22d80
Commit
01c22d80
authored
Jan 19, 2010
by
Kai Koehne
Browse files
Also watch sub-directories for changes
parent
2181a93a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/qmlprojectmanager/fileformat/filefilteritems.cpp
View file @
01c22d80
...
...
@@ -109,6 +109,7 @@ void FileFilterBaseItem::updateFileList()
const
QSet
<
QString
>
watchedDirectories
=
m_fsWatcher
.
directories
().
toSet
();
const
QSet
<
QString
>
unwatchDirs
=
watchedDirectories
-
dirsToBeWatched
;
const
QSet
<
QString
>
watchDirs
=
dirsToBeWatched
-
watchedDirectories
;
if
(
!
unwatchDirs
.
isEmpty
())
m_fsWatcher
.
removePaths
(
unwatchDirs
.
toList
());
if
(
!
watchDirs
.
isEmpty
())
...
...
@@ -130,7 +131,7 @@ QSet<QString> FileFilterBaseItem::filesInSubTree(const QDir &rootDir, const QDir
if
(
m_recursive
)
{
foreach
(
const
QFileInfo
&
subDir
,
dir
.
entryInfoList
(
QDir
::
Dirs
|
QDir
::
NoDotAndDotDot
))
{
fileSet
+=
filesInSubTree
(
rootDir
,
QDir
(
subDir
.
absoluteFilePath
()));
fileSet
+=
filesInSubTree
(
rootDir
,
QDir
(
subDir
.
absoluteFilePath
())
,
parsedDirs
);
}
}
return
fileSet
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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