aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/help/webenginehelpviewer.cpp
diff options
context:
space:
mode:
authorTim Jenssen <[email protected]>2016-09-23 15:25:37 +0200
committerOrgad Shaneh <[email protected]>2016-09-25 03:13:35 +0000
commit6f698f3e9869f6cab2ce7ee5a33078056c92e5d8 (patch)
tree21a2c738c9e455716c77c9b6e7a735fed7e3876d /src/plugins/help/webenginehelpviewer.cpp
parenta9c37839dd00080467d0d0b7477d4f4989c207f7 (diff)
Help: fix build/typo
Change-Id: I582e251e3af9ff0ff226df070c4a7584f0a57f8f Reviewed-by: Orgad Shaneh <[email protected]>
Diffstat (limited to 'src/plugins/help/webenginehelpviewer.cpp')
-rw-r--r--src/plugins/help/webenginehelpviewer.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/help/webenginehelpviewer.cpp b/src/plugins/help/webenginehelpviewer.cpp
index 785d62845d1..9ff0b1965ab 100644
--- a/src/plugins/help/webenginehelpviewer.cpp
+++ b/src/plugins/help/webenginehelpviewer.cpp
@@ -35,7 +35,9 @@
#include <QContextMenuEvent>
#include <QCoreApplication>
#include <QVBoxLayout>
+#if QT_VERSION >= QT_VERSION_CHECK(5, 7, 0)
#include <QWebEngineContextMenuData>
+#endif
#include <QWebEngineHistory>
#include <QWebEngineProfile>
#include <QWebEngineSettings>
@@ -307,7 +309,7 @@ void WebView::contextMenuEvent(QContextMenuEvent *event)
QUrl url = page()->contextMenuData().linkUrl();
if (m_viewer->isActionVisible(HelpViewer::Action::NewPage)) {
auto openLink = new QAction(QCoreApplication::translate("HelpViewer",
- Constants::TR_OPEN_LINK_IN_NEW_PAGE), menu);
+ Constants::TR_OPEN_LINK_AS_NEW_PAGE), menu);
connect(openLink, &QAction::triggered, m_viewer, [this, url] {
m_viewer->newPageRequested(url);
});