diff options
author | Lorn Potter <lorn.potter@gmail.com> | 2022-04-04 18:08:41 +1000 |
---|---|---|
committer | Morten Johan Sørvig <morten.sorvig@qt.io> | 2022-05-10 01:20:45 +0000 |
commit | d490501641b1f3990382d3ad3523233fdbf3da61 (patch) | |
tree | 4b52e4e083c0175a9dad058b8c40345747f8955f /src/plugins/platforms/wasm/qwasmintegration.h | |
parent | 877c158c5976bebffd0ff02c39b6b66a842c6344 (diff) |
wasm: add support for drag into browser window
Drag and drop into the browser will work.
Drag and drop out of the browser will not.
Fixes: QTBUG-102242
Change-Id: Id9981ab6f9514535e1409bec18068790833a67a6
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Diffstat (limited to 'src/plugins/platforms/wasm/qwasmintegration.h')
-rw-r--r-- | src/plugins/platforms/wasm/qwasmintegration.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/plugins/platforms/wasm/qwasmintegration.h b/src/plugins/platforms/wasm/qwasmintegration.h index cba5057f09..9b5abb3db1 100644 --- a/src/plugins/platforms/wasm/qwasmintegration.h +++ b/src/plugins/platforms/wasm/qwasmintegration.h @@ -45,6 +45,10 @@ #include "qwasminputcontext.h" #include <private/qstdweb_p.h> +#if QT_CONFIG(draganddrop) +#include "qwasmdrag.h" +#endif + QT_BEGIN_NAMESPACE class QWasmEventTranslator; @@ -91,6 +95,10 @@ public: void initialize() override; QPlatformInputContext *inputContext() const override; +#if QT_CONFIG(draganddrop) + QPlatformDrag *drag() const override; +#endif + QWasmClipboard *getWasmClipboard() { return m_clipboard; } QWasmInputContext *getWasmInputContext() { return m_platformInputContext; } static QWasmIntegration *get() { return s_instance; } @@ -117,6 +125,11 @@ private: static QWasmIntegration *s_instance; mutable QWasmInputContext *m_platformInputContext = nullptr; + +#if QT_CONFIG(draganddrop) + QWasmDrag *m_drag; +#endif + }; QT_END_NAMESPACE |