Skip to content

Commit

Permalink
Restriction of type of mime-data on the QGVMapQGView class removed. F…
Browse files Browse the repository at this point in the history
…inal corrections on clang-format
  • Loading branch information
Leonardo Seiji Oyama committed May 28, 2024
1 parent c12161a commit 05fc536
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions lib/src/QGVMapQGView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -612,17 +612,14 @@ void QGVMapQGView::dragMoveEvent(QDragMoveEvent* event)
}

void QGVMapQGView::dropEvent(QDropEvent* event)
{
if (event->mimeData()->hasFormat("application/x-qabstractitemmodeldatalist"))
{
{
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
Q_EMIT dropData(event->position(), event->mimeData());
Q_EMIT dropData(event->position(), event->mimeData());
#else
QPointF dropPoint = event->posF();
Q_EMIT dropData(dropPoint, event->mimeData());
QPointF dropPoint = event->posF();
Q_EMIT dropData(dropPoint, event->mimeData());
#endif
}
event->ignore();
event->accept();
}

void QGVMapQGView::dragLeaveEvent(QDragLeaveEvent* event)
Expand Down

0 comments on commit 05fc536

Please sign in to comment.