forked from qt-creator/qt-creator
Enclose window title vcs topic in brackets
To be consistent, change the topic in the project node accordingly Change-Id: Ie15aa62db28836330f619f0752ac488e0dd87e57 Reviewed-by: Petar Perisin <petar.perisin@gmail.com> Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
b8e1860c88
commit
561f31e855
@@ -1882,7 +1882,7 @@ void EditorManager::updateWindowTitle()
|
||||
QString windowTitle = tr("Qt Creator");
|
||||
const QString dashSep = QLatin1String(" - ");
|
||||
if (!d->m_titleVcsTopic.isEmpty())
|
||||
windowTitle.prepend(d->m_titleVcsTopic + dashSep);
|
||||
windowTitle.prepend(QLatin1Char('[') + d->m_titleVcsTopic + QLatin1String("] - "));
|
||||
if (!d->m_titleAddition.isEmpty())
|
||||
windowTitle.prepend(d->m_titleAddition + dashSep);
|
||||
IDocument *document = currentDocument();
|
||||
|
||||
@@ -271,7 +271,7 @@ QVariant FlatModel::data(const QModelIndex &index, int role) const
|
||||
const QString vcsTopic = node->vcsTopic();
|
||||
|
||||
if (!vcsTopic.isEmpty())
|
||||
name += QLatin1String(" (") + vcsTopic + QLatin1Char(')');
|
||||
name += QLatin1String(" [") + vcsTopic + QLatin1Char(']');
|
||||
}
|
||||
|
||||
result = name;
|
||||
|
||||
Reference in New Issue
Block a user