From 434e32270b582be8bb9eeb5b200282c78d3bbd58 Mon Sep 17 00:00:00 2001 From: cerf <delorme.hugues@gmail.com> Date: Mon, 14 Mar 2011 11:18:49 +0100 Subject: [PATCH] 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> --- src/plugins/vcsbase/vcsbaseclient.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plugins/vcsbase/vcsbaseclient.cpp b/src/plugins/vcsbase/vcsbaseclient.cpp index 68e939389c9..edc48f7e88b 100644 --- a/src/plugins/vcsbase/vcsbaseclient.cpp +++ b/src/plugins/vcsbase/vcsbaseclient.cpp @@ -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, -- GitLab