diff options
author | Szabolcs David <davidsz@inf.u-szeged.hu> | 2017-09-12 18:53:59 +0200 |
---|---|---|
committer | Szabolcs David <davidsz@inf.u-szeged.hu> | 2017-11-03 00:46:30 +0000 |
commit | 0bbaf0d5d7b2d406eda57d40370b00fb79cc0aeb (patch) | |
tree | c23285ae71d4733c4bdd3d9c6749daba371610fb /src/core/web_event_factory.h | |
parent | 18ea13a7f5e083538910646c52a96a5e4642d1f2 (diff) |
Support tablet devices
Process QTabletEvents and forward them to Chromium in order to
support pressure, tilting, rotation, eraser and similar
features of tablet devices.
Change-Id: I763d9e6e7036c29715a0b5531d3c6363eb4fcd8c
Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'src/core/web_event_factory.h')
-rw-r--r-- | src/core/web_event_factory.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/web_event_factory.h b/src/core/web_event_factory.h index 259795c1f..c9ae86a73 100644 --- a/src/core/web_event_factory.h +++ b/src/core/web_event_factory.h @@ -53,6 +53,7 @@ QT_BEGIN_NAMESPACE class QHoverEvent; class QKeyEvent; class QMouseEvent; +class QTabletEvent; class QWheelEvent; #ifndef QT_NO_GESTURES class QNativeGestureEvent; @@ -64,6 +65,7 @@ class WebEventFactory { public: static blink::WebMouseEvent toWebMouseEvent(QMouseEvent*, double dpiScale); static blink::WebMouseEvent toWebMouseEvent(QHoverEvent*, double dpiScale); + static blink::WebMouseEvent toWebMouseEvent(QTabletEvent*, double dpiScale); #ifndef QT_NO_GESTURES static blink::WebGestureEvent toWebGestureEvent(QNativeGestureEvent *, double dpiScale); #endif |