[vlc-commits] [Git][videolan/vlc][master] 2 commits: qml: fix header selection on click
Steve Lhomme (@robUx4)
gitlab at videolan.org
Fri Oct 21 15:25:58 UTC 2022
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
71b957cc by Prince Gupta at 2022-10-21T14:58:15+00:00
qml: fix header selection on click
- - - - -
5e4688e0 by Prince Gupta at 2022-10-21T14:58:15+00:00
qml: fix keyboard navigation in header of MusicArtists component
- - - - -
1 changed file:
- modules/gui/qt/medialibrary/qml/MusicArtist.qml
Changes:
=====================================
modules/gui/qt/medialibrary/qml/MusicArtist.qml
=====================================
@@ -134,6 +134,8 @@ FocusScope {
}
delegate: Widgets.GridItem {
+ id: gridItem
+
image: model.cover || VLCStyle.noArtAlbumCover
title: model.title || I18n.qtr("Unknown title")
subtitle: model.release_year || ""
@@ -157,7 +159,7 @@ FocusScope {
Connections {
target: albumSelectionModel
- onSelectionChanged: selected = albumSelectionModel.isSelected(albumModel.index(index, 0))
+ onSelectionChanged: gridItem.selected = albumSelectionModel.isSelected(albumModel.index(index, 0))
}
function play() {
@@ -168,7 +170,7 @@ FocusScope {
}
onSelectAll: albumSelectionModel.selectAll()
-
+ onSelectionUpdated: albumSelectionModel.updateSelection( keyModifiers, oldIndex, newIndex )
onActionAtIndex: MediaLib.addAndPlay( albumModel.getIdForIndex( index ) )
}
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/2ad8f936542b725f33147aabc94becad9efc4603...5e4688e08e17878d66a739c702a7f70cc68cd799
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/2ad8f936542b725f33147aabc94becad9efc4603...5e4688e08e17878d66a739c702a7f70cc68cd799
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list