From e2d5936a76dfe40e0e372022cc4c86c3cb2ac1aa Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Mon, 11 Jul 2022 13:30:24 +0200 Subject: Help: Convert to Tr::tr Change-Id: I3f9ca195488f7cc90e7f58eb15263dde1bc911c4 Reviewed-by: hjk --- src/plugins/help/webenginehelpviewer.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/plugins/help/webenginehelpviewer.cpp') diff --git a/src/plugins/help/webenginehelpviewer.cpp b/src/plugins/help/webenginehelpviewer.cpp index 7ece25833f..8c03df0faa 100644 --- a/src/plugins/help/webenginehelpviewer.cpp +++ b/src/plugins/help/webenginehelpviewer.cpp @@ -147,8 +147,7 @@ WebEngineHelpViewer::WebEngineHelpViewer(QWidget *parent) : }); QAction* action = m_widget->pageAction(QWebEnginePage::OpenLinkInNewTab); - action->setText(QCoreApplication::translate("HelpViewer", - Constants::TR_OPEN_LINK_AS_NEW_PAGE)); + action->setText(Tr::tr(Constants::TR_OPEN_LINK_AS_NEW_PAGE)); QWebEnginePage *viewPage = m_widget->page(); QTC_ASSERT(viewPage, return); @@ -358,16 +357,14 @@ void WebView::contextMenuEvent(QContextMenuEvent *event) QUrl url = page()->contextMenuData().linkUrl(); #endif if (m_viewer->isActionVisible(HelpViewer::Action::NewPage)) { - auto openLink = new QAction(QCoreApplication::translate("HelpViewer", - Constants::TR_OPEN_LINK_AS_NEW_PAGE), menu); + auto openLink = new QAction(Tr::tr(Constants::TR_OPEN_LINK_AS_NEW_PAGE), menu); connect(openLink, &QAction::triggered, m_viewer, [this, url] { m_viewer->newPageRequested(url); }); menu->insertAction(before, openLink); } if (m_viewer->isActionVisible(HelpViewer::Action::ExternalWindow)) { - auto openLink = new QAction(QCoreApplication::translate("HelpViewer", - Constants::TR_OPEN_LINK_IN_WINDOW), menu); + auto openLink = new QAction(Tr::tr(Constants::TR_OPEN_LINK_IN_WINDOW), menu); connect(openLink, &QAction::triggered, m_viewer, [this, url] { m_viewer->externalPageRequested(url); }); -- cgit v1.2.1