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

@@ -138,7 +138,7 @@ QString ShellCommand::displayName() const
return d->m_displayName;
if (!d->m_jobs.isEmpty()) {
const Internal::ShellCommandPrivate::Job &job = d->m_jobs.at(0);
QString result = job.command.executable().toFileInfo().baseName();
QString result = job.command.executable().baseName();
if (!result.isEmpty())
result[0] = result.at(0).toTitleCase();
else