[vlc-commits] [Git][videolan/vlc][master] qml/MediaGroupList: Fix DragItem id and name implementation
Jean-Baptiste Kempf
gitlab at videolan.org
Sat May 8 10:59:29 UTC 2021
Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC
Commits:
12d1b4f8 by Benjamin Arnaud at 2021-05-08T10:18:51+00:00
qml/MediaGroupList: Fix DragItem id and name implementation
fix #25668
- - - - -
1 changed file:
- modules/gui/qt/medialibrary/qml/MediaGroupList.qml
Changes:
=====================================
modules/gui/qt/medialibrary/qml/MediaGroupList.qml
=====================================
@@ -194,7 +194,7 @@ Widgets.NavigableFocusScope {
}
Widgets.DragItem {
- id: dragItem
+ id: dragItemGroup
function updateComponents(maxCovers) {
var items = modelSelect.selectedIndexes.slice(0, maxCovers).map(function (x){
@@ -205,13 +205,13 @@ Widgets.NavigableFocusScope {
return { artwork: item.thumbnail || VLCStyle.noArtCover }
});
- var title = items.map(function (item) {
- return item.title
+ var name = items.map(function (item) {
+ return item.name
}).join(", ");
return {
covers: covers,
- title: title,
+ title: name,
count: modelSelect.selectedIndexes.length
}
}
@@ -284,7 +284,7 @@ Widgets.NavigableFocusScope {
// NOTE: We don't want to show the indicator for a group.
showNewIndicator: (model.count === 1)
- dragItem: root.dragItem
+ dragItem: dragItemGroup
selectedUnderlay : shadows.selected
unselectedUnderlay: shadows.unselected
@@ -364,7 +364,7 @@ Widgets.NavigableFocusScope {
selectionDelegateModel: modelSelect
- dragItem: root.dragItem
+ dragItem: dragItemGroup
header: root.header
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/12d1b4f87cdd89cc9a4d325c1303445ac94abf03
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/12d1b4f87cdd89cc9a4d325c1303445ac94abf03
You're receiving this email because of your account on code.videolan.org.
More information about the vlc-commits
mailing list