summaryrefslogtreecommitdiff
path: root/src/plugins/projectexplorer/projectexplorer.cpp
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2021-09-28 15:53:08 +0200
committerhjk <hjk@qt.io>2021-09-29 07:44:17 +0000
commit66bf957618848cfa243a88a8f2909167d3535d27 (patch)
treec62d7a36b0bb830a80c352b0cf224499e2a9302d /src/plugins/projectexplorer/projectexplorer.cpp
parentb237db519b606c1caf8f01dce4e258ae20950d2c (diff)
downloadqt-creator-66bf957618848cfa243a88a8f2909167d3535d27.tar.gz
Vcs: FilePath-ify VcsManager::promptToAdd
And adjust users a bit. Change-Id: Idb31030b208403e88c5be0171b3ca9d4d7ded35d Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'src/plugins/projectexplorer/projectexplorer.cpp')
-rw-r--r--src/plugins/projectexplorer/projectexplorer.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/projectexplorer/projectexplorer.cpp b/src/plugins/projectexplorer/projectexplorer.cpp
index d8fb0dc8f2..852b5c27e8 100644
--- a/src/plugins/projectexplorer/projectexplorer.cpp
+++ b/src/plugins/projectexplorer/projectexplorer.cpp
@@ -3619,10 +3619,10 @@ void ProjectExplorerPluginPrivate::addExistingProjects()
if (subProjectFilePaths.empty())
return;
FilePaths failedProjects;
- QStringList addedProjects;
+ FilePaths addedProjects;
for (const FilePath &filePath : qAsConst(subProjectFilePaths)) {
if (projectNode->addSubProject(filePath))
- addedProjects << filePath.toString();
+ addedProjects << filePath;
else
failedProjects << filePath;
}
@@ -3633,7 +3633,7 @@ void ProjectExplorerPluginPrivate::addExistingProjects()
message + "\n " + FilePath::formatFilePaths(failedProjects, "\n "));
return;
}
- VcsManager::promptToAdd(dir.toString(), addedProjects);
+ VcsManager::promptToAdd(dir, addedProjects);
}
void ProjectExplorerPluginPrivate::handleAddExistingFiles()
@@ -3685,7 +3685,7 @@ void ProjectExplorerPlugin::addExistingFiles(FolderNode *folderNode, const FileP
[&notAdded](const FilePath &f) { return !notAdded.contains(f); });
}
- VcsManager::promptToAdd(dir.toString(), Utils::transform(fileNames, &FilePath::toString));
+ VcsManager::promptToAdd(dir, fileNames);
}
void ProjectExplorerPluginPrivate::removeProject()