diff options
Diffstat (limited to 'src/plugins/platforms/wasm/qwasmwindow.h')
-rw-r--r-- | src/plugins/platforms/wasm/qwasmwindow.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/platforms/wasm/qwasmwindow.h b/src/plugins/platforms/wasm/qwasmwindow.h index 906a7a1daf..20e30f3d97 100644 --- a/src/plugins/platforms/wasm/qwasmwindow.h +++ b/src/plugins/platforms/wasm/qwasmwindow.h @@ -33,6 +33,7 @@ class EventCallback; class ClientArea; struct DragEvent; struct PointerEvent; +struct WheelEvent; class QWasmWindow final : public QPlatformWindow { @@ -93,6 +94,7 @@ private: bool processPointer(const PointerEvent &event); bool processDrop(const DragEvent &event); + bool processWheel(const WheelEvent &event); QWindow *m_window = nullptr; QWasmCompositor *m_compositor = nullptr; @@ -116,6 +118,8 @@ private: std::unique_ptr<qstdweb::EventCallback> m_dropCallback; + std::unique_ptr<qstdweb::EventCallback> m_wheelEventCallback; + Qt::WindowStates m_state = Qt::WindowNoState; Qt::WindowStates m_previousWindowState = Qt::WindowNoState; |