diff options
author | Eike Ziller <[email protected]> | 2022-07-11 13:30:24 +0200 |
---|---|---|
committer | Eike Ziller <[email protected]> | 2022-07-13 12:30:46 +0000 |
commit | e2d5936a76dfe40e0e372022cc4c86c3cb2ac1aa (patch) | |
tree | a49bb5983ff52f036e5a414d276948274fd81bac /src/plugins/help/webenginehelpviewer.cpp | |
parent | d262e665ca5aee9b1001dae4ae0c9a9b9d0e49a3 (diff) |
Help: Convert to Tr::tr
Change-Id: I3f9ca195488f7cc90e7f58eb15263dde1bc911c4
Reviewed-by: hjk <[email protected]>
Diffstat (limited to 'src/plugins/help/webenginehelpviewer.cpp')
-rw-r--r-- | src/plugins/help/webenginehelpviewer.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/plugins/help/webenginehelpviewer.cpp b/src/plugins/help/webenginehelpviewer.cpp index 7ece25833ff..8c03df0faa7 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); }); |