From cfd69678d27dde5b8470a86ec9539e49b17a9f6f Mon Sep 17 00:00:00 2001 From: Takumi ASAKI Date: Mon, 30 May 2016 14:17:09 +0900 Subject: [PATCH] Help: Fix translation context Change-Id: I36f854eb56fed17b736af8390da08b01d72ee418 Reviewed-by: Eike Ziller --- src/plugins/help/helpwidget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/help/helpwidget.cpp b/src/plugins/help/helpwidget.cpp index 36abfd38e53..ff39e9503c7 100644 --- a/src/plugins/help/helpwidget.cpp +++ b/src/plugins/help/helpwidget.cpp @@ -300,7 +300,7 @@ void HelpWidget::addSideBar() contentWindow->setWindowTitle(HelpPlugin::tr(Constants::SB_CONTENTS)); connect(contentWindow, &ContentWindow::linkActivated, 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->setDefaultKeySequence(QKeySequence(Core::UseMacShortcuts ? tr("Meta+Shift+C") : tr("Ctrl+Shift+C"))); @@ -314,7 +314,7 @@ void HelpWidget::addSideBar() this, &HelpWidget::open); connect(indexWindow, &IndexWindow::linksActivated, 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->setDefaultKeySequence(QKeySequence(Core::UseMacShortcuts ? tr("Meta+I") : tr("Ctrl+Shift+I")));