From e34350adf6018fa46744b6a7000033eeb4180ca2 Mon Sep 17 00:00:00 2001
From: mae <qt-info@nokia.com>
Date: Fri, 7 May 2010 16:32:58 +0200
Subject: [PATCH] Labelling consistency (now also with docs)

Reviewed-by: Oswald Buddenhagen
---
 src/plugins/coreplugin/modemanager.cpp     | 2 +-
 src/plugins/designer/formeditorfactory.cpp | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/plugins/coreplugin/modemanager.cpp b/src/plugins/coreplugin/modemanager.cpp
index 1fc743245d8..702b00e1da8 100644
--- a/src/plugins/coreplugin/modemanager.cpp
+++ b/src/plugins/coreplugin/modemanager.cpp
@@ -177,7 +177,7 @@ void ModeManager::objectAdded(QObject *obj)
     ActionManager *am = d->m_mainWindow->actionManager();
     const QString shortcutId = QLatin1String("QtCreator.Mode.") + mode->id();
     QShortcut *shortcut = new QShortcut(d->m_mainWindow);
-    shortcut->setWhatsThis(tr("Switch to %1 Mode").arg(mode->displayName()));
+    shortcut->setWhatsThis(tr("Switch to <b>%1</b> mode").arg(mode->displayName()));
     Command *cmd = am->registerShortcut(shortcut, shortcutId, QList<int>() << Constants::C_GLOBAL_ID);
 
     d->m_modeShortcuts.insert(index, cmd);
diff --git a/src/plugins/designer/formeditorfactory.cpp b/src/plugins/designer/formeditorfactory.cpp
index 155a9a4bbc1..7e7de93e103 100644
--- a/src/plugins/designer/formeditorfactory.cpp
+++ b/src/plugins/designer/formeditorfactory.cpp
@@ -90,8 +90,8 @@ void FormEditorFactory::updateEditorInfoBar(Core::IEditor *editor)
 {
     if (qobject_cast<FormWindowEditor *>(editor)) {
         Core::EditorManager::instance()->showEditorInfoBar(Constants::INFO_READ_ONLY,
-            tr("This file can only be edited in Design Mode."),
-            tr("Switch to Design Mode"), this, SLOT(designerModeClicked()));
+            tr("This file can only be edited in <b>Design</b> mode."),
+            tr("Switch mode"), this, SLOT(designerModeClicked()));
     } else {
         Core::EditorManager::instance()->hideEditorInfoBar(Constants::INFO_READ_ONLY);
     }
-- 
GitLab