diff options
author | Eike Ziller <eike.ziller@theqtcompany.com> | 2015-05-26 15:12:42 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@theqtcompany.com> | 2015-05-26 15:12:42 +0200 |
commit | 3858c33d741cc0bfb120d528b0f3465e665c4bd5 (patch) | |
tree | c5fd6289f486a14e698940a40511fa4344a911da /src/plugins/help/helpwidget.cpp | |
parent | 03b92050e03bbc51f1d49d7dbce8116f23a0c66e (diff) | |
parent | b8038191e693f5649686d56b2192169ea1f53a25 (diff) |
Merge remote-tracking branch 'origin/3.4'
Change-Id: I35ba4cc7f7052699c3006545514c866be3cb5fdd
Diffstat (limited to 'src/plugins/help/helpwidget.cpp')
-rw-r--r-- | src/plugins/help/helpwidget.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/plugins/help/helpwidget.cpp b/src/plugins/help/helpwidget.cpp index ced702260f0..552736b291a 100644 --- a/src/plugins/help/helpwidget.cpp +++ b/src/plugins/help/helpwidget.cpp @@ -53,6 +53,7 @@ #include <utils/qtcassert.h> #include <utils/styledbar.h> +#include <QCoreApplication> #include <QHBoxLayout> #include <QHelpEngine> #include <QHelpSearchEngine> @@ -131,15 +132,18 @@ HelpWidget::HelpWidget(const Core::Context &context, WidgetStyle style, QWidget } if (style != SideBarWidget) { m_toggleSideBarAction = new QAction(QIcon(QLatin1String(Core::Constants::ICON_TOGGLE_SIDEBAR)), - tr(Core::Constants::TR_SHOW_SIDEBAR), toolBar); + QCoreApplication::translate("Core", Core::Constants::TR_SHOW_SIDEBAR), + toolBar); m_toggleSideBarAction->setCheckable(true); m_toggleSideBarAction->setChecked(false); cmd = Core::ActionManager::registerAction(m_toggleSideBarAction, Core::Constants::TOGGLE_SIDEBAR, context); connect(m_toggleSideBarAction, &QAction::toggled, m_toggleSideBarAction, [this](bool checked) { - m_toggleSideBarAction->setText(checked ? tr(Core::Constants::TR_HIDE_SIDEBAR) - : tr(Core::Constants::TR_SHOW_SIDEBAR)); + m_toggleSideBarAction->setText( + QCoreApplication::translate("Core", + checked ? Core::Constants::TR_HIDE_SIDEBAR + : Core::Constants::TR_SHOW_SIDEBAR)); }); addSideBar(); m_toggleSideBarAction->setChecked(m_sideBar->isVisibleTo(this)); |