Use position().toPoint() with Qt 6

This commit is contained in:
Jonas Kvinge
2020-07-29 21:40:03 +02:00
parent d332a6777a
commit 4c028c1659
2 changed files with 9 additions and 0 deletions

View File

@@ -974,7 +974,12 @@ void PlaylistView::dragMoveEvent(QDragMoveEvent *event) {
QTreeView::dragMoveEvent(event);
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
QModelIndex index(indexAt(event->position().toPoint()));
#else
QModelIndex index(indexAt(event->pos()));
#endif
drop_indicator_row_ = index.isValid() ? index.row() : 0;
}