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:
Orgad Shaneh
2013-08-25 21:01:12 +03:00
committed by Orgad Shaneh
parent b8e1860c88
commit 561f31e855
2 changed files with 2 additions and 2 deletions

View File

@@ -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();

View File

@@ -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;