[vlc-commits] [Git][videolan/vlc][master] qml: synchronize playlist view current index with the controller index

Steve Lhomme (@robUx4) gitlab at videolan.org
Fri Oct 3 08:02:17 UTC 2025



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
3c207bfe by Fatih Uzunoglu at 2025-10-03T07:34:40+00:00
qml: synchronize playlist view current index with the controller index

Due to `highlightFollowsCurrentItem`, the playlist is going to scroll
to reveal the new current item.

This makes the behavior consistent with VLC 3.0.

- - - - -


1 changed file:

- modules/gui/qt/playlist/qml/PlaylistPane.qml


Changes:

=====================================
modules/gui/qt/playlist/qml/PlaylistPane.qml
=====================================
@@ -267,6 +267,10 @@ T.Pane {
                 contextMenu.popup(-1, globalPos)
             }
 
+            Component.onCompleted: {
+                MainPlaylistController.currentIndexChanged.connect(listView, (index) => { listView.currentIndex = index })
+            }
+
             Connections {
                 target: listView.model
 



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/3c207bfe7be4644602cf76202c539e330e014b6a

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/3c207bfe7be4644602cf76202c539e330e014b6a
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