Commit 561f31e8 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh
Browse files

Enclose window title vcs topic in brackets



To be consistent, change the topic in the project node accordingly

Change-Id: Ie15aa62db28836330f619f0752ac488e0dd87e57
Reviewed-by: default avatarPetar Perisin <petar.perisin@gmail.com>
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent b8e1860c
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment