fix: use NoDragDrop mode + viewport.setAcceptDrops for Wayland/KDE compatibility
This commit is contained in:
@@ -615,8 +615,11 @@ class PlaylistWidget(QListWidget):
|
|||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super().__init__()
|
super().__init__()
|
||||||
|
# Disable built-in drag-drop mode so Qt doesn't intercept drops
|
||||||
|
# through the viewport (which breaks on Wayland/KDE).
|
||||||
|
self.setDragDropMode(QAbstractItemView.DragDropMode.NoDragDrop)
|
||||||
self.setAcceptDrops(True)
|
self.setAcceptDrops(True)
|
||||||
self.setDragDropMode(QAbstractItemView.DragDropMode.DropOnly)
|
self.viewport().setAcceptDrops(True)
|
||||||
self.setMinimumWidth(200)
|
self.setMinimumWidth(200)
|
||||||
self.setWordWrap(True)
|
self.setWordWrap(True)
|
||||||
self._paths: list[str] = []
|
self._paths: list[str] = []
|
||||||
|
|||||||
Reference in New Issue
Block a user