vcsbase: concise and readable VCS editor title

The user string returned by VCSBaseClient::vcsEditorTitle() now
begins with the basename of the VCS binary

Merge-request: 270
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
cerf
2011-03-14 11:18:49 +01:00
committed by Tobias Hunger
parent cba7359afa
commit 9ffcff105a

View File

@@ -439,7 +439,9 @@ void VCSBaseClient::settingsChanged()
QString VCSBaseClient::vcsEditorTitle(const QString &vcsCmd, const QString &sourceId) const
{
return d->m_clientSettings.binary() + QLatin1Char(' ') + vcsCmd + QLatin1Char(' ') + sourceId;
return QFileInfo(d->m_clientSettings.binary()).baseName() +
QLatin1Char(' ') + vcsCmd + QLatin1Char(' ') +
QFileInfo(sourceId).fileName();
}
VCSBase::VCSBaseEditorWidget *VCSBaseClient::createVCSEditor(const QString &kind, QString title,