Commit e34350ad authored by mae's avatar mae
Browse files

Labelling consistency (now also with docs)

Reviewed-by: Oswald Buddenhagen
parent bc7d8532
...@@ -177,7 +177,7 @@ void ModeManager::objectAdded(QObject *obj) ...@@ -177,7 +177,7 @@ void ModeManager::objectAdded(QObject *obj)
ActionManager *am = d->m_mainWindow->actionManager(); ActionManager *am = d->m_mainWindow->actionManager();
const QString shortcutId = QLatin1String("QtCreator.Mode.") + mode->id(); const QString shortcutId = QLatin1String("QtCreator.Mode.") + mode->id();
QShortcut *shortcut = new QShortcut(d->m_mainWindow); 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); Command *cmd = am->registerShortcut(shortcut, shortcutId, QList<int>() << Constants::C_GLOBAL_ID);
d->m_modeShortcuts.insert(index, cmd); d->m_modeShortcuts.insert(index, cmd);
......
...@@ -90,8 +90,8 @@ void FormEditorFactory::updateEditorInfoBar(Core::IEditor *editor) ...@@ -90,8 +90,8 @@ void FormEditorFactory::updateEditorInfoBar(Core::IEditor *editor)
{ {
if (qobject_cast<FormWindowEditor *>(editor)) { if (qobject_cast<FormWindowEditor *>(editor)) {
Core::EditorManager::instance()->showEditorInfoBar(Constants::INFO_READ_ONLY, Core::EditorManager::instance()->showEditorInfoBar(Constants::INFO_READ_ONLY,
tr("This file can only be edited in Design Mode."), tr("This file can only be edited in <b>Design</b> mode."),
tr("Switch to Design Mode"), this, SLOT(designerModeClicked())); tr("Switch mode"), this, SLOT(designerModeClicked()));
} else { } else {
Core::EditorManager::instance()->hideEditorInfoBar(Constants::INFO_READ_ONLY); Core::EditorManager::instance()->hideEditorInfoBar(Constants::INFO_READ_ONLY);
} }
......
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