summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/wasm/qwasmevent.h
diff options
context:
space:
mode:
authorMikolaj Boc <mikolaj.boc@qt.io>2022-10-13 10:55:37 +0200
committerMikolaj Boc <mikolaj.boc@qt.io>2022-12-05 22:26:59 +0100
commite50bc60e878adbf5d43ae3992c2b98596082e704 (patch)
tree814b5c84d5e02d44819f605a0c9f2d0bc4344b80 /src/plugins/platforms/wasm/qwasmevent.h
parentf546f3700b376fb25de38958e0ab2ca880f9629a (diff)
Resize wasm windows using a div outline
Introducing a div outline which handles the resize events by itself. Manual computations in wasm compositor are no longer needed. The outline reacts to setting css variables (border-width, resize-outline-width), it sets the correct cursors using css and always keeps the correct size. Fixes: QTBUG-107498 Change-Id: I6b0564632af5e17e464fe93a3dfa20820c624292 Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Diffstat (limited to 'src/plugins/platforms/wasm/qwasmevent.h')
-rw-r--r--src/plugins/platforms/wasm/qwasmevent.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/platforms/wasm/qwasmevent.h b/src/plugins/platforms/wasm/qwasmevent.h
index df9276b746..9f43b6a85f 100644
--- a/src/plugins/platforms/wasm/qwasmevent.h
+++ b/src/plugins/platforms/wasm/qwasmevent.h
@@ -115,6 +115,7 @@ struct Q_CORE_EXPORT Event
struct Q_CORE_EXPORT MouseEvent : public Event
{
QPoint point;
+ QPoint pointInViewport;
Qt::MouseButton mouseButton;
Qt::MouseButtons mouseButtons;
QFlags<Qt::KeyboardModifier> modifiers;