summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/wasm/qwasmdrag.cpp
diff options
authorMorten Sørvig <morten.sorvig@qt.io>2024-01-03 13:15:39 +0100
committerMorten Johan Sørvig <morten.sorvig@qt.io>2024-01-08 21:00:09 +0000
commit9c03678f5c1cd293eded1c4a2c343190b99d3d6a (patch)
tree00d9c84113f25213624a8240a1aeddca2d5e326a /src/plugins/platforms/wasm/qwasmdrag.cpp
parent5b53f9b3f8e5f0b642e9e9c48cd7574f23e77233 (diff)
wasm: finish comment and remove debug output
Pick-to: 6.7 Change-Id: Iff832637ca600f382e99534c07f7cf35b0b6cdde Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/plugins/platforms/wasm/qwasmdrag.cpp')
-rw-r--r--src/plugins/platforms/wasm/qwasmdrag.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/plugins/platforms/wasm/qwasmdrag.cpp b/src/plugins/platforms/wasm/qwasmdrag.cpp
index f088ecb2f6f..1359c4cd78a 100644
--- a/src/plugins/platforms/wasm/qwasmdrag.cpp
+++ b/src/plugins/platforms/wasm/qwasmdrag.cpp
@@ -160,16 +160,13 @@ void QWasmDrag::onNativeDrop(DragEvent *event)
QFlags<Qt::KeyboardModifier> modifiers = event->modifiers;
// Accept the native drop event: We are going to async read any dropped
- // files, but the
+ // files, but the browser expects that accepted state is set before any
+ // async calls.
event->acceptDrop();
- qDebug() << "QWasmDrag::onNativeDrop" << event;
-
const auto dropCallback = [&m_dragState = m_dragState, wasmWindow, targetWindowPos,
actions, mouseButton, modifiers](QMimeData *mimeData) {
- qDebug() << "QWasmDrag::onNativeDrop callback";
-
auto dropResponse = std::make_shared<QPlatformDropQtResponse>(true, Qt::DropAction::CopyAction);
*dropResponse = QWindowSystemInterface::handleDrop(wasmWindow->window(), mimeData,
targetWindowPos, actions,
close