1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-24 12:46:35 +01:00

GreaseMonkey: Use QTWEBENGINEWIDGETS_VERSION to check for the current version

Signed-off-by: Juraj Oravec <sgd.orava@gmail.com>
This commit is contained in:
Juraj Oravec 2020-01-06 11:45:10 +01:00
parent 6974f8c254
commit 903c29cb09
No known key found for this signature in database
GPG Key ID: 63ACB65056BC8D07

View File

@ -25,7 +25,7 @@
#include "webtab.h"
#include "../config.h"
#include <QtWebEngineVersion>
#include <QtWebEngineWidgetsVersion>
GM_Plugin::GM_Plugin()
: QObject()
@ -71,7 +71,7 @@ bool GM_Plugin::acceptNavigationRequest(WebPage *page, const QUrl &url, QWebEngi
Q_UNUSED(page)
Q_UNUSED(isMainFrame)
#if QTWEBENGINE_VERSION >= QT_VERSION_CHECK(5, 14, 0)
#if QTWEBENGINEWIDGETS_VERSION >= QT_VERSION_CHECK(5, 14, 0)
bool navigationType = type == QWebEnginePage::NavigationTypeLinkClicked || type == QWebEnginePage::NavigationTypeRedirect;
#else
bool navigationType = type == QWebEnginePage::NavigationTypeLinkClicked;