forked from qt-creator/qt-creator
Utils: add FilePath::baseName
Removing some FilePath::toFileInfo() calls Change-Id: I49be2ef260f225e07b64ee8ace6a8cd47a9d8bb2 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -604,9 +604,8 @@ void VcsBaseClient::commit(const QString &repositoryRoot,
|
||||
|
||||
QString VcsBaseClient::vcsEditorTitle(const QString &vcsCmd, const QString &sourceId) const
|
||||
{
|
||||
return vcsBinary().toFileInfo().baseName() +
|
||||
QLatin1Char(' ') + vcsCmd + QLatin1Char(' ') +
|
||||
FilePath::fromString(sourceId).fileName();
|
||||
return vcsBinary().baseName() + QLatin1Char(' ') + vcsCmd + QLatin1Char(' ')
|
||||
+ FilePath::fromString(sourceId).fileName();
|
||||
}
|
||||
|
||||
void VcsBaseClient::statusParser(const QString &text)
|
||||
|
||||
Reference in New Issue
Block a user