forked from qt-creator/qt-creator
Utils: more toFileInfo cleanup
Change-Id: I78f501fb9a262a0866453fc2a66b56a78d6d82ab Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -782,7 +782,7 @@ void AndroidBuildApkStep::doRun()
|
|||||||
}
|
}
|
||||||
deploySettings["target-architecture"] = androidAbis.first();
|
deploySettings["target-architecture"] = androidAbis.first();
|
||||||
} else {
|
} else {
|
||||||
applicationBinary = buildSystem()->buildTarget(buildKey).targetFilePath.toFileInfo().fileName();
|
applicationBinary = buildSystem()->buildTarget(buildKey).targetFilePath.fileName();
|
||||||
QJsonObject architectures;
|
QJsonObject architectures;
|
||||||
|
|
||||||
// Copy targets to android build folder
|
// Copy targets to android build folder
|
||||||
|
@@ -3716,7 +3716,7 @@ void ProjectExplorerPluginPrivate::removeFile()
|
|||||||
Core::ICore::dialogParent(), tr("Remove More Files?"),
|
Core::ICore::dialogParent(), tr("Remove More Files?"),
|
||||||
tr("Remove these files as well?\n %1")
|
tr("Remove these files as well?\n %1")
|
||||||
.arg(Utils::transform<QStringList>(siblings, [](const NodeAndPath &np) {
|
.arg(Utils::transform<QStringList>(siblings, [](const NodeAndPath &np) {
|
||||||
return np.second.toFileInfo().fileName();
|
return np.second.fileName();
|
||||||
}).join("\n ")));
|
}).join("\n ")));
|
||||||
if (reply == QMessageBox::Yes)
|
if (reply == QMessageBox::Yes)
|
||||||
filesToRemove << siblings;
|
filesToRemove << siblings;
|
||||||
|
@@ -219,7 +219,7 @@ bool FlatModel::setData(const QModelIndex &index, const QVariant &value, int rol
|
|||||||
Core::ICore::dialogParent(), tr("Rename More Files?"),
|
Core::ICore::dialogParent(), tr("Rename More Files?"),
|
||||||
tr("Would you like to rename these files as well?\n %1")
|
tr("Would you like to rename these files as well?\n %1")
|
||||||
.arg(transform<QStringList>(candidateNodes, [](const Node *n) {
|
.arg(transform<QStringList>(candidateNodes, [](const Node *n) {
|
||||||
return n->filePath().toFileInfo().fileName();
|
return n->filePath().fileName();
|
||||||
}).join("\n ")));
|
}).join("\n ")));
|
||||||
if (reply == QMessageBox::Yes) {
|
if (reply == QMessageBox::Yes) {
|
||||||
for (Node * const n : candidateNodes) {
|
for (Node * const n : candidateNodes) {
|
||||||
|
Reference in New Issue
Block a user