Fix for Qt4 and QWebKit
This commit is contained in:
committed by
wmayer
parent
1a7e7e378c
commit
d429e90b11
@@ -331,7 +331,7 @@ BrowserView::BrowserView(QWidget* parent)
|
||||
#ifdef QTWEBKIT
|
||||
textSizeMultiplier = 1.0;
|
||||
|
||||
view->page()->setLinkDelegationPolicy(QWebView::DelegateAllLinks);
|
||||
view->page()->setLinkDelegationPolicy(QWebPage::DelegateAllLinks);
|
||||
view->page()->setForwardUnsupportedContent(true);
|
||||
|
||||
// set our custom cookie manager
|
||||
|
||||
@@ -9,7 +9,7 @@ include_directories(
|
||||
|
||||
if (Qt5WebEngineWidgets_FOUND)
|
||||
add_definitions(-DQTWEBENGINE)
|
||||
elseif(Qt5WebKitWidgets_FOUND or QT_QTWEBKIT_FOUND) # Qt5 and Qt4
|
||||
elseif(Qt5WebKitWidgets_FOUND OR QT_QTWEBKIT_FOUND) # Qt5 and Qt4
|
||||
add_definitions(-DQTWEBKIT)
|
||||
endif()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user