Utils: add FilePath::baseName

Removing some FilePath::toFileInfo() calls

Change-Id: I49be2ef260f225e07b64ee8ace6a8cd47a9d8bb2
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
David Schulz
2021-06-03 12:53:40 +02:00
parent d5ff8b1c24
commit 068873c9d5
13 changed files with 21 additions and 17 deletions

View File

@@ -604,9 +604,8 @@ void VcsBaseClient::commit(const QString &repositoryRoot,
QString VcsBaseClient::vcsEditorTitle(const QString &vcsCmd, const QString &sourceId) const
{
return vcsBinary().toFileInfo().baseName() +
QLatin1Char(' ') + vcsCmd + QLatin1Char(' ') +
FilePath::fromString(sourceId).fileName();
return vcsBinary().baseName() + QLatin1Char(' ') + vcsCmd + QLatin1Char(' ')
+ FilePath::fromString(sourceId).fileName();
}
void VcsBaseClient::statusParser(const QString &text)