[utilities/basket] src: QDropEvent::pos() -> position().toPoint()

Pino Toscano <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 4b914dc6564a120bb437a97305e1752d8214d7ca by Pino Toscano.
Committed on 07/08/2026 at 10:11.
Pushed by pino into branch 'master'.

QDropEvent::pos() -> position().toPoint()

M  +2    -2    src/basketlistview.cpp

https://invent.kde.org/utilities/basket/-/commit/4b914dc6564a120bb437a97305e1752d8214d7ca

diff --git a/src/basketlistview.cpp b/src/basketlistview.cpp
index bb209bbe..cce4be81 100644
--- a/src/basketlistview.cpp
+++ b/src/basketlistview.cpp
@@ -381,7 +381,7 @@ void BasketTreeListView::dropEvent(QDropEvent *event)
     } else { // this handels application/x-basket-note drag events.
         qDebug() << "Forwarding dropped data to the basket";
         event->setDropAction(Qt::MoveAction);
-        QTreeWidgetItem *item = itemAt(event->pos());
+        QTreeWidgetItem *item = itemAt(event->position().toPoint());
         auto *bitem = dynamic_cast<BasketListViewItem *>(item);
         if (bitem) {
             bitem->basket()->blindDrop(event->mimeData(), event->dropAction(), event->source());
@@ -403,7 +403,7 @@ void BasketTreeListView::dragMoveEvent(QDragMoveEvent *event)
     // qDebug() << "BasketTreeListView::dragMoveEvent";
 
     if (!event->mimeData()->hasFormat(TREE_ITEM_MIME_STRING)) {
-        QTreeWidgetItem *item = itemAt(event->pos());
+        QTreeWidgetItem *item = itemAt(event->position().toPoint());
         auto *bitem = dynamic_cast<BasketListViewItem *>(item);
         if (m_autoOpenItem != item) {
             m_autoOpenItem = item;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.