aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/resourceeditor/qrceditor/resourcefile.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/resourceeditor/qrceditor/resourcefile.cpp
parentb237db519b606c1caf8f01dce4e258ae20950d2c (diff)
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/resourceeditor/qrceditor/resourcefile.cpp')
-rw-r--r--src/plugins/resourceeditor/qrceditor/resourcefile.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/plugins/resourceeditor/qrceditor/resourcefile.cpp b/src/plugins/resourceeditor/qrceditor/resourcefile.cpp
index f4ab60b6f4..b89ddffb88 100644
--- a/src/plugins/resourceeditor/qrceditor/resourcefile.cpp
+++ b/src/plugins/resourceeditor/qrceditor/resourcefile.cpp
@@ -30,7 +30,9 @@
#include <coreplugin/icore.h>
#include <coreplugin/vcsmanager.h>
#include <projectexplorer/projectexplorerconstants.h>
-#include <utils/fileutils.h>
+
+#include <utils/algorithm.h>
+#include <utils/filepath.h>
#include <utils/removefiledialog.h>
#include <utils/theme/theme.h>
@@ -995,7 +997,8 @@ void ResourceModel::addFiles(int prefixIndex, const QStringList &fileNames, int
firstFile = cnt;
lastFile = cnt + unique_list.count() - 1;
- Core::VcsManager::promptToAdd(m_resource_file.filePath().absolutePath().toString(), fileNames);
+ Core::VcsManager::promptToAdd(m_resource_file.filePath().absolutePath(),
+ Utils::transform(fileNames, &FilePath::fromString));
}