mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10: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:
parent
6974f8c254
commit
903c29cb09
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user