summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/wasm/qwasmdrag.h
Commit message (Collapse)AuthorAgeFilesLines
* wasm: add dragleave event handlingLorn Potter2024-10-111-0/+1
|||||||| Fixes: QTBUG-129149 Pick-to: 6.8 Change-Id: I946f43e3a696c801a60a9a209a70ccaf57252a60 Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io> Reviewed-by: Piotr Wierciński <piotr.wiercinski@qt.io>
* Change wasm files licenseLucie Gérard2024-02-161-1/+1
||||||||| The other files in this directory are non-LGPL Pick-to: 6.7 Task-number: QTBUG-121787 Change-Id: I9c319f723dafd7205029d7632c456412d1a3010b Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* wasm: add QWasmDrag back to handle drag/dropLorn Potter2023-12-211-0/+47
||||||| Change-Id: I7c577e6b13db9f5c51e5691baaf6417b956a5ff4 Done-with: Mikolaj.Boc@qt.io Pick-to: 6.7 Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
* Handle the drop event in the wasm window elementMikolaj Boc2023-01-201-17/+0
|||||||||||||| Drop events are now handled in the wasm window element, which allows the browser to select the drop target automatically. This also fixes the case where drop data transfer finishes reading when a window has already been closed and destroyed - the cancellation flag is now owned by window so it gets invalidated as soon as window is gone. The code has also been structured with a new DragEvent passthrough. Fixes: QTBUG-109581 Change-Id: Ie3eb7446e2181fd540517f39397e8b35f111d009 Reviewed-by: Mikołaj Boc <Mikolaj.Boc@qt.io>
* Streamline reading of js DataTransfer objectMikolaj Boc2023-01-181-27/+3
|||||||||||||||||| qwasmclipboard.cpp and qwasmdrag.cpp had the same logic that read the js DataTransfer object implemented twice with small differences. Use a single implementation in both. This also introduces a clearer memory ownership model in the reader code, and fixes a potential race condition by introducing a cancellation flag. Removed the useless QWasmDrag type which was in essence a SimpleDrag and made the m_drag in QWasmIntegration a smart pointer. Fixes: QTBUG-109626 Pick-to: 6.5 Change-Id: I5b76dd3b70ab2e5a8364d9a136c970ee8d4fae9c Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
* Run clang-format on qwasmdrag.h/.cppMikolaj Boc2022-12-211-2/+0
||||| Change-Id: Id67238566b6e25d8bf1645b5b83d898622eb5f89 Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Use a smart pointer for QWasmDrag::m_mimeDataMikolaj Boc2022-12-211-1/+1
|||||| Change-Id: I10e27a92d37e5bf131c7c0f22860a957d1f1592d Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Use SPDX license identifiersLucie Gérard2022-05-161-28/+2
||||||||||||| Replace the current license disclaimer in files by a SPDX-License-Identifier. Files that have to be modified by hand are modified. License files are organized under LICENSES directory. Task-number: QTBUG-67283 Change-Id: Id880c92784c40f3bbde861c0d93f58151c18b9f1 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Lars Knoll <lars.knoll@qt.io> Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
* wasm: add support for drag into browser windowLorn Potter2022-05-101-0/+69
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>
close