Fix lupdate issues

- missing Q_DECLARE_TR_FUNCTIONS
- some full qualifications needed for confused lupdate
- avoid breaking some translations from former TaskListPlugin,
  VcsCommand and highlighter settings refactoring

Change-Id: Ia3b34095512a7bad6903f0aff6095313ee39e3e4
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Eike Ziller
2022-10-14 14:52:54 +02:00
parent ec430787e5
commit 8db0d3b0ff
11 changed files with 17 additions and 10 deletions

View File

@@ -94,13 +94,13 @@ QString VcsCommandPrivate::displayName() const
if (!m_displayName.isEmpty())
return m_displayName;
if (m_jobs.isEmpty())
return tr("Unknown");
return VcsCommand::tr("UNKNOWN");
const Job &job = m_jobs.at(0);
QString result = job.command.executable().baseName();
if (!result.isEmpty())
result[0] = result.at(0).toTitleCase();
else
result = tr("UNKNOWN");
result = VcsCommand::tr("UNKNOWN");
if (!job.command.arguments().isEmpty())
result += ' ' + job.command.splitArguments().at(0);
return result;