forked from qt-creator/qt-creator
Help: Fix translation context
Change-Id: I36f854eb56fed17b736af8390da08b01d72ee418 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
committed by
Takumi ASAKI
parent
d165122526
commit
cfd69678d2
@@ -300,7 +300,7 @@ void HelpWidget::addSideBar()
|
|||||||
contentWindow->setWindowTitle(HelpPlugin::tr(Constants::SB_CONTENTS));
|
contentWindow->setWindowTitle(HelpPlugin::tr(Constants::SB_CONTENTS));
|
||||||
connect(contentWindow, &ContentWindow::linkActivated,
|
connect(contentWindow, &ContentWindow::linkActivated,
|
||||||
this, &HelpWidget::open);
|
this, &HelpWidget::open);
|
||||||
m_contentsAction = new QAction(tr(Constants::SB_CONTENTS), this);
|
m_contentsAction = new QAction(HelpPlugin::tr(Constants::SB_CONTENTS), this);
|
||||||
cmd = Core::ActionManager::registerAction(m_contentsAction, Constants::HELP_CONTENTS, m_context->context());
|
cmd = Core::ActionManager::registerAction(m_contentsAction, Constants::HELP_CONTENTS, m_context->context());
|
||||||
cmd->setDefaultKeySequence(QKeySequence(Core::UseMacShortcuts ? tr("Meta+Shift+C")
|
cmd->setDefaultKeySequence(QKeySequence(Core::UseMacShortcuts ? tr("Meta+Shift+C")
|
||||||
: tr("Ctrl+Shift+C")));
|
: tr("Ctrl+Shift+C")));
|
||||||
@@ -314,7 +314,7 @@ void HelpWidget::addSideBar()
|
|||||||
this, &HelpWidget::open);
|
this, &HelpWidget::open);
|
||||||
connect(indexWindow, &IndexWindow::linksActivated,
|
connect(indexWindow, &IndexWindow::linksActivated,
|
||||||
this, &HelpWidget::showTopicChooser);
|
this, &HelpWidget::showTopicChooser);
|
||||||
m_indexAction = new QAction(tr(Constants::SB_INDEX), this);
|
m_indexAction = new QAction(HelpPlugin::tr(Constants::SB_INDEX), this);
|
||||||
cmd = Core::ActionManager::registerAction(m_indexAction, Constants::HELP_INDEX, m_context->context());
|
cmd = Core::ActionManager::registerAction(m_indexAction, Constants::HELP_INDEX, m_context->context());
|
||||||
cmd->setDefaultKeySequence(QKeySequence(Core::UseMacShortcuts ? tr("Meta+I")
|
cmd->setDefaultKeySequence(QKeySequence(Core::UseMacShortcuts ? tr("Meta+I")
|
||||||
: tr("Ctrl+Shift+I")));
|
: tr("Ctrl+Shift+I")));
|
||||||
|
|||||||
Reference in New Issue
Block a user