From eafc52cf1e1f01caf3aaeb5869cd9acf7f4ae4b9 Mon Sep 17 00:00:00 2001 From: David Schulz Date: Fri, 4 Jun 2021 08:38:29 +0200 Subject: [PATCH] Utils: more toFileInfo cleanup Change-Id: I78f501fb9a262a0866453fc2a66b56a78d6d82ab Reviewed-by: hjk --- src/plugins/android/androidbuildapkstep.cpp | 2 +- src/plugins/projectexplorer/projectexplorer.cpp | 2 +- src/plugins/projectexplorer/projectmodels.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/android/androidbuildapkstep.cpp b/src/plugins/android/androidbuildapkstep.cpp index 66731191155..14d2d0bce40 100644 --- a/src/plugins/android/androidbuildapkstep.cpp +++ b/src/plugins/android/androidbuildapkstep.cpp @@ -782,7 +782,7 @@ void AndroidBuildApkStep::doRun() } deploySettings["target-architecture"] = androidAbis.first(); } else { - applicationBinary = buildSystem()->buildTarget(buildKey).targetFilePath.toFileInfo().fileName(); + applicationBinary = buildSystem()->buildTarget(buildKey).targetFilePath.fileName(); QJsonObject architectures; // Copy targets to android build folder diff --git a/src/plugins/projectexplorer/projectexplorer.cpp b/src/plugins/projectexplorer/projectexplorer.cpp index 1885df2a46e..02d98bc2792 100644 --- a/src/plugins/projectexplorer/projectexplorer.cpp +++ b/src/plugins/projectexplorer/projectexplorer.cpp @@ -3716,7 +3716,7 @@ void ProjectExplorerPluginPrivate::removeFile() Core::ICore::dialogParent(), tr("Remove More Files?"), tr("Remove these files as well?\n %1") .arg(Utils::transform(siblings, [](const NodeAndPath &np) { - return np.second.toFileInfo().fileName(); + return np.second.fileName(); }).join("\n "))); if (reply == QMessageBox::Yes) filesToRemove << siblings; diff --git a/src/plugins/projectexplorer/projectmodels.cpp b/src/plugins/projectexplorer/projectmodels.cpp index b765c2571e3..425f53548d4 100644 --- a/src/plugins/projectexplorer/projectmodels.cpp +++ b/src/plugins/projectexplorer/projectmodels.cpp @@ -219,7 +219,7 @@ bool FlatModel::setData(const QModelIndex &index, const QVariant &value, int rol Core::ICore::dialogParent(), tr("Rename More Files?"), tr("Would you like to rename these files as well?\n %1") .arg(transform(candidateNodes, [](const Node *n) { - return n->filePath().toFileInfo().fileName(); + return n->filePath().fileName(); }).join("\n "))); if (reply == QMessageBox::Yes) { for (Node * const n : candidateNodes) {