[vlc-commits] [Git][videolan/vlc][master] 8 commits: qt: make itemRoleData take MLItem as const

François Cartegnie (@fcartegnie) gitlab at videolan.org
Tue Jan 28 10:23:12 UTC 2025



François Cartegnie pushed to branch master at VideoLAN / VLC


Commits:
fdcc7573 by Pierre Lamot at 2025-01-28T09:33:50+00:00
qt: make itemRoleData take MLItem as const

- - - - -
99d09858 by Pierre Lamot at 2025-01-28T09:33:50+00:00
qt: factorise code to return MLItem as a JS Object

- - - - -
4c345f03 by Pierre Lamot at 2025-01-28T09:33:50+00:00
qt: add helper function to build a JS promise from C++

- - - - -
7a21d7f5 by Pierre Lamot at 2025-01-28T09:33:50+00:00
qt: add getDataById in MLBaseModel

this allows to retrieve the content of and item given its id

- - - - -
a51880f1 by Pierre Lamot at 2025-01-28T09:33:50+00:00
qt: add getIndexFromId in MLBaseModel

This allows getting the position of an item in the model from its MLItemID

- - - - -
07f410b5 by Pierre Lamot at 2025-01-28T09:33:50+00:00
qt: ensure cache exists in MLBaseModel::findInCache

- - - - -
d3108983 by Pierre Lamot at 2025-01-28T09:33:50+00:00
qt: add fetchMore ListCache

this allows to request more data from the cache using the standart growth policy
rather than requiring the caller to `refer` and item after what is currently
loaded. This function ensure that the cache tries to load at least the current
count + chunk size

- - - - -
8be6ba7a by Pierre Lamot at 2025-01-28T09:33:50+00:00
qml: fix wrong artist being loaded when artist view is not alphabetical

we can't rely on index to refer to an item across views as the ordering of the
model is not stable across the views.

This MR uses the artist MLId to set which subview should be loaded

fix: #28556

- - - - -


30 changed files:

- modules/gui/qt/medialibrary/mlalbummodel.cpp
- modules/gui/qt/medialibrary/mlalbummodel.hpp
- modules/gui/qt/medialibrary/mlalbumtrackmodel.cpp
- modules/gui/qt/medialibrary/mlalbumtrackmodel.hpp
- modules/gui/qt/medialibrary/mlartistmodel.cpp
- modules/gui/qt/medialibrary/mlartistmodel.hpp
- modules/gui/qt/medialibrary/mlbasemodel.cpp
- modules/gui/qt/medialibrary/mlbasemodel.hpp
- modules/gui/qt/medialibrary/mlgenremodel.cpp
- modules/gui/qt/medialibrary/mlgenremodel.hpp
- modules/gui/qt/medialibrary/mlplaylistlistmodel.cpp
- modules/gui/qt/medialibrary/mlplaylistlistmodel.hpp
- modules/gui/qt/medialibrary/mlplaylistmodel.cpp
- modules/gui/qt/medialibrary/mlplaylistmodel.hpp
- modules/gui/qt/medialibrary/mlrecentsmodel.cpp
- modules/gui/qt/medialibrary/mlrecentsmodel.hpp
- modules/gui/qt/medialibrary/mlurlmodel.cpp
- modules/gui/qt/medialibrary/mlurlmodel.hpp
- modules/gui/qt/medialibrary/mlvideofoldersmodel.cpp
- modules/gui/qt/medialibrary/mlvideofoldersmodel.hpp
- modules/gui/qt/medialibrary/mlvideogroupsmodel.cpp
- modules/gui/qt/medialibrary/mlvideogroupsmodel.hpp
- modules/gui/qt/medialibrary/mlvideomodel.cpp
- modules/gui/qt/medialibrary/mlvideomodel.hpp
- modules/gui/qt/medialibrary/qml/MusicAllArtists.qml
- modules/gui/qt/medialibrary/qml/MusicArtist.qml
- modules/gui/qt/medialibrary/qml/MusicArtistDelegate.qml
- modules/gui/qt/medialibrary/qml/MusicArtistsAlbums.qml
- modules/gui/qt/medialibrary/qml/MusicArtistsDisplay.qml
- modules/gui/qt/tests/test_ml_model.cpp


The diff was not included because it is too large.


View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/8cbc0a1ae0c57433034ae47cb67ed2cf06fcb26f...8be6ba7a8ee32b5112a3dd3d845dd41882226c97

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/8cbc0a1ae0c57433034ae47cb67ed2cf06fcb26f...8be6ba7a8ee32b5112a3dd3d845dd41882226c97
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