wasm: finish comment and remove debug output

Change-Id: Iff832637ca600f382e99534c07f7cf35b0b6cdde
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
(cherry picked from commit 9c03678f5c1cd293eded1c4a2c343190b99d3d6a)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Morten Sørvig 2024-01-03 13:15:39 +01:00 committed by Qt Cherry-pick Bot
parent 90aab36604
commit 3778e618d6

View File

@ -160,16 +160,13 @@ void QWasmDrag::onNativeDrop(DragEvent *event)
QFlags<Qt::KeyboardModifier> modifiers = event->modifiers; QFlags<Qt::KeyboardModifier> modifiers = event->modifiers;
// Accept the native drop event: We are going to async read any dropped // 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(); event->acceptDrop();
qDebug() << "QWasmDrag::onNativeDrop" << event;
const auto dropCallback = [&m_dragState = m_dragState, wasmWindow, targetWindowPos, const auto dropCallback = [&m_dragState = m_dragState, wasmWindow, targetWindowPos,
actions, mouseButton, modifiers](QMimeData *mimeData) { actions, mouseButton, modifiers](QMimeData *mimeData) {
qDebug() << "QWasmDrag::onNativeDrop callback";
auto dropResponse = std::make_shared<QPlatformDropQtResponse>(true, Qt::DropAction::CopyAction); auto dropResponse = std::make_shared<QPlatformDropQtResponse>(true, Qt::DropAction::CopyAction);
*dropResponse = QWindowSystemInterface::handleDrop(wasmWindow->window(), mimeData, *dropResponse = QWindowSystemInterface::handleDrop(wasmWindow->window(), mimeData,
targetWindowPos, actions, targetWindowPos, actions,