diff options
Diffstat (limited to 'src/plugins/platforms/wasm/qwasmscreen.h')
-rw-r--r-- | src/plugins/platforms/wasm/qwasmscreen.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/platforms/wasm/qwasmscreen.h b/src/plugins/platforms/wasm/qwasmscreen.h index 39791d3d83..633cf853f7 100644 --- a/src/plugins/platforms/wasm/qwasmscreen.h +++ b/src/plugins/platforms/wasm/qwasmscreen.h @@ -36,6 +36,7 @@ public: emscripten::val element() const; QString eventTargetId() const; QString outerScreenId() const; + QPointingDevice *touchDevice() { return m_touchDevice.get(); } QWasmCompositor *compositor(); QWasmDeadKeySupport *deadKeySupport() { return m_deadKeySupport.get(); } @@ -67,6 +68,7 @@ private: emscripten::val m_container; emscripten::val m_shadowContainer; std::unique_ptr<QWasmCompositor> m_compositor; + std::unique_ptr<QPointingDevice> m_touchDevice; std::unique_ptr<QWasmDeadKeySupport> m_deadKeySupport; QRect m_geometry = QRect(0, 0, 100, 100); int m_depth = 32; |