forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/4.10'
Conflicts: qbs/modules/qtc/qtc.qbs qtcreator_ide_branding.pri src/libs/utils/synchronousprocess.cpp src/plugins/baremetal/iarewtoolchain.cpp src/plugins/cmakeprojectmanager/cmakeproject.cpp tests/unit/unittest/CMakeLists.txt Change-Id: I124ad492df403286751e175d27fe36487ddf6d07
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
|
||||
#include "filefilteritems.h"
|
||||
|
||||
#include <utils/algorithm.h>
|
||||
#include <utils/filesystemwatcher.h>
|
||||
#include <utils/fileutils.h>
|
||||
#include <utils/qtcassert.h>
|
||||
@@ -160,7 +161,7 @@ void FileFilterBaseItem::setPathsProperty(const QStringList &path)
|
||||
|
||||
QStringList FileFilterBaseItem::files() const
|
||||
{
|
||||
return m_files.toList();
|
||||
return Utils::toList(m_files);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -243,16 +244,16 @@ void FileFilterBaseItem::updateFileListNow()
|
||||
}
|
||||
|
||||
// update watched directories
|
||||
const QSet<QString> oldDirs = watchedDirectories().toSet();
|
||||
const QSet<QString> oldDirs = Utils::toSet(watchedDirectories());
|
||||
const QSet<QString> unwatchDirs = oldDirs - dirsToBeWatched;
|
||||
const QSet<QString> watchDirs = dirsToBeWatched - oldDirs;
|
||||
|
||||
if (!unwatchDirs.isEmpty()) {
|
||||
QTC_ASSERT(m_dirWatcher, return);
|
||||
m_dirWatcher->removeDirectories(unwatchDirs.toList());
|
||||
m_dirWatcher->removeDirectories(Utils::toList(unwatchDirs));
|
||||
}
|
||||
if (!watchDirs.isEmpty())
|
||||
dirWatcher()->addDirectories(watchDirs.toList(), Utils::FileSystemWatcher::WatchAllChanges);
|
||||
dirWatcher()->addDirectories(Utils::toList(watchDirs), Utils::FileSystemWatcher::WatchAllChanges);
|
||||
}
|
||||
|
||||
bool FileFilterBaseItem::fileMatches(const QString &fileName) const
|
||||
|
||||
@@ -275,7 +275,7 @@ void QmlProject::refreshFiles(const QSet<QString> &/*added*/, const QSet<QString
|
||||
refresh(Files);
|
||||
if (!removed.isEmpty()) {
|
||||
if (auto modelManager = QmlJS::ModelManagerInterface::instance())
|
||||
modelManager->removeFiles(removed.toList());
|
||||
modelManager->removeFiles(Utils::toList(removed));
|
||||
}
|
||||
refreshTargetDirectory();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user