[vlc-devel] [PATCH 51/55] qml: change cursor when dragging DragItem
Fatih Uzunoglu
fuzun54 at outlook.com
Thu Jan 7 21:37:04 UTC 2021
---
modules/gui/qt/widgets/qml/DragItem.qml | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/modules/gui/qt/widgets/qml/DragItem.qml b/modules/gui/qt/widgets/qml/DragItem.qml
index 807de1ea58..723ed2ec28 100644
--- a/modules/gui/qt/widgets/qml/DragItem.qml
+++ b/modules/gui/qt/widgets/qml/DragItem.qml
@@ -42,9 +42,12 @@ Playlist.PlaylistDroppable {
}
Drag.onActiveChanged: {
- if (!Drag.active)
- return
- _model = updateComponents(_maxCovers)
+ if (Drag.active) {
+ _model = updateComponents(_maxCovers)
+ mainInterface.setCursor(Qt.DragMoveCursor)
+ } else {
+ mainInterface.restoreCursor()
+ }
}
function coversXPos(index) {
--
2.27.0
More information about the vlc-devel
mailing list