forked from qt-creator/qt-creator
ProjectExplorer: Pass extra project files as QSet
They are available in some cases as such, and consumed as such. Change-Id: I9866c7d7bd817fb19a8b11a0efbe583ed55fe393 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -110,7 +110,7 @@ void AutotoolsBuildSystem::makefileParsingFinished()
|
||||
|
||||
m_files.clear();
|
||||
|
||||
QVector<Utils::FilePath> filesToWatch;
|
||||
QSet<Utils::FilePath> filesToWatch;
|
||||
|
||||
// Apply sources to m_files, which are returned at AutotoolsBuildSystem::files()
|
||||
const QFileInfo fileInfo = projectFilePath().toFileInfo();
|
||||
@@ -127,7 +127,7 @@ void AutotoolsBuildSystem::makefileParsingFinished()
|
||||
|
||||
m_files.append(absMakefile);
|
||||
|
||||
filesToWatch.append(Utils::FilePath::fromString(absMakefile));
|
||||
filesToWatch.insert(Utils::FilePath::fromString(absMakefile));
|
||||
}
|
||||
|
||||
// Add configure.ac file to project and watch for changes.
|
||||
@@ -137,7 +137,7 @@ void AutotoolsBuildSystem::makefileParsingFinished()
|
||||
const QString absConfigureAc = dir.absoluteFilePath(configureAc);
|
||||
m_files.append(absConfigureAc);
|
||||
|
||||
filesToWatch.append(Utils::FilePath::fromString(absConfigureAc));
|
||||
filesToWatch.insert(Utils::FilePath::fromString(absConfigureAc));
|
||||
}
|
||||
|
||||
auto newRoot = std::make_unique<ProjectNode>(project()->projectDirectory());
|
||||
|
Reference in New Issue
Block a user