mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +01:00
Qt5: Disabling touch mocking workaround for some pages.
It is working all right now with latest QtWebKit. See issues #634 #33
This commit is contained in:
parent
cadfd63b1e
commit
69eed9efe0
@ -1156,6 +1156,8 @@ void WebView::setZoom(int zoom)
|
||||
///
|
||||
bool WebView::eventFilter(QObject* obj, QEvent* event)
|
||||
{
|
||||
// This hack is no longer needed with Qt 5
|
||||
#if QT_VERSION < 0x050000
|
||||
if (obj != this || m_disableTouchMocking) {
|
||||
return false;
|
||||
}
|
||||
@ -1215,7 +1217,7 @@ bool WebView::eventFilter(QObject* obj, QEvent* event)
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
#endif
|
||||
return QWebView::eventFilter(obj, event);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user