forked from qt-creator/qt-creator
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user