63 QWindow *currentMouseWindow = QGuiApplicationPrivate::currentMouseWindow;
65 auto *qWindow = touchedWindow !=
nullptr ? touchedWindow : currentMouseWindow;
66 if (qWindow !=
nullptr) {
67 auto *platformWindow = QOhosPlatformWindow::fromQWindowOrNull(qWindow);
68 return platformWindow !=
nullptr
69 ? platformWindow->ownedViewOrNull()
111 if (initiatorView ==
nullptr || drag ==
nullptr || drag->mimeData() ==
nullptr)
112 return Qt::IgnoreAction;
114 m_activeEventFilterHandle = installDragEventFilter();
116 auto eventLoop = std::make_shared<QEventLoop>();
118 m_dropAction = drag->defaultAction();
120 auto dragPixmap = !drag->pixmap().isNull() ? drag->pixmap() : QPlatformDrag::defaultPixmap();
121 initiatorView->startDrag(
122 {dragPixmap.toImage()}, drag->hotSpot(),
124 [
this, eventLoop](Qt::DropAction dropAction) {
125 m_dropAction = dropAction;
131 m_activeEventFilterHandle.reset();