1
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:
nowrep 2012-12-21 16:04:57 +01:00
parent cadfd63b1e
commit 69eed9efe0

View File

@ -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);
}