[vlc-commits] qml: create PlaylistListModel instance in listView instead of root
Fatih Uzunoglu
git at videolan.org
Tue Jan 12 13:20:33 UTC 2021
vlc | branch: master | Fatih Uzunoglu <fuzun54 at outlook.com> | Fri Jan 8 00:36:35 2021 +0300| [831c837bda586ddc208b5250d5c347f3845e496e] | committer: Pierre Lamot
qml: create PlaylistListModel instance in listView instead of root
Signed-off-by: Pierre Lamot <pierre at videolabs.io>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=831c837bda586ddc208b5250d5c347f3845e496e
---
modules/gui/qt/playlist/qml/PlaylistListView.qml | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/modules/gui/qt/playlist/qml/PlaylistListView.qml b/modules/gui/qt/playlist/qml/PlaylistListView.qml
index 1036bc657c..c5a44df265 100644
--- a/modules/gui/qt/playlist/qml/PlaylistListView.qml
+++ b/modules/gui/qt/playlist/qml/PlaylistListView.qml
@@ -30,9 +30,7 @@ import "qrc:///style/"
Widgets.NavigableFocusScope {
id: root
- property var model: PlaylistListModel {
- playlistId: mainctx.playlist
- }
+ property alias model: listView.model
property int leftPadding: 0
property int rightPadding: 0
@@ -245,7 +243,9 @@ Widgets.NavigableFocusScope {
focus: true
- model: root.model
+ model: PlaylistListModel {
+ playlistId: mainctx.playlist
+ }
modelCount: root.model.count
fadeColor: root.backgroundColor
More information about the vlc-commits
mailing list