diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-04-16 14:06:15 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-04-22 22:17:44 +0200 |
commit | f36ae86ec88bb756da93992bdd12f0fe596f2263 (patch) | |
tree | 35be6c1b0749c568131bf3c4247b8242ac81dfee /src/core/render_widget_host_view_qt_delegate.h | |
parent | 7bae846e71ef168f8c9160298eeac1f6bc793d39 (diff) |
Forward unhandled scroll events
Fixes a regression in webengine stealing all wheel events.
Fixes: QTBUG-81322
Change-Id: I0176627f3e13d97f55162f70fc7a969f98f4f444
Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
Diffstat (limited to 'src/core/render_widget_host_view_qt_delegate.h')
-rw-r--r-- | src/core/render_widget_host_view_qt_delegate.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/render_widget_host_view_qt_delegate.h b/src/core/render_widget_host_view_qt_delegate.h index 4ee790ce9..46f1802a6 100644 --- a/src/core/render_widget_host_view_qt_delegate.h +++ b/src/core/render_widget_host_view_qt_delegate.h @@ -58,12 +58,13 @@ QT_BEGIN_NAMESPACE class QEvent; +class QInputMethodEvent; class QSGLayer; class QSGNode; class QSGRectangleNode; class QSGTexture; class QVariant; -class QInputMethodEvent; +class QWheelEvent; class QSGImageNode; @@ -111,6 +112,7 @@ public: virtual void setInputMethodHints(Qt::InputMethodHints hints) = 0; virtual void setClearColor(const QColor &color) = 0; virtual bool copySurface(const QRect &, const QSize &, QImage &) = 0; + virtual void unhandledWheelEvent(QWheelEvent *) {} }; } // namespace QtWebEngineCore |