[vlc-commits] [Git][videolan/vlc][master] 2 commits: qml: fix video group view loading

Felix Paul Kühne (@fkuehne) gitlab at videolan.org
Fri Sep 13 13:14:41 UTC 2024



Felix Paul Kühne pushed to branch master at VideoLAN / VLC


Commits:
16645c50 by Prince Gupta at 2024-09-13T13:02:32+00:00
qml: fix video group view loading

add missing required property

- - - - -
592eab2a by Prince Gupta at 2024-09-13T13:02:32+00:00
qml: rename MediaGroupDisplay to VideoGroupDisplay

it's only suppose to handle videos

- - - - -


5 changed files:

- modules/gui/qt/Makefile.am
- modules/gui/qt/medialibrary/qml/VideoAllDisplay.qml
- modules/gui/qt/medialibrary/qml/MediaGroupDisplay.qml → modules/gui/qt/medialibrary/qml/VideoGroupDisplay.qml
- modules/gui/qt/meson.build
- po/POTFILES.in


Changes:

=====================================
modules/gui/qt/Makefile.am
=====================================
@@ -936,7 +936,7 @@ libqml_module_medialibrary_a_CPPFLAGS = $(libqt_plugin_la_CPPFLAGS)
 libqml_module_medialibrary_a_QML = \
 	medialibrary/qml/ArtistTopBanner.qml \
 	medialibrary/qml/AudioGridItem.qml \
-	medialibrary/qml/MediaGroupDisplay.qml \
+	medialibrary/qml/VideoGroupDisplay.qml \
 	medialibrary/qml/MusicAlbums.qml \
 	medialibrary/qml/MusicAlbumsDisplay.qml \
 	medialibrary/qml/MusicAlbumsGridExpandDelegate.qml \


=====================================
modules/gui/qt/medialibrary/qml/VideoAllDisplay.qml
=====================================
@@ -73,7 +73,7 @@ Widgets.PageLoader {
     Component {
         id: componentGroup
 
-        MediaGroupDisplay {
+        VideoGroupDisplay {
             id: group
 
             onCurrentIndexChanged: History.viewProp.initialIndex = currentIndex


=====================================
modules/gui/qt/medialibrary/qml/MediaGroupDisplay.qml → modules/gui/qt/medialibrary/qml/VideoGroupDisplay.qml
=====================================
@@ -40,6 +40,15 @@ VideoAll {
     // NOTE: The title of the group.
     property string title: ""
 
+    sectionProperty: {
+        switch (model.sortCriteria) {
+        case "title":
+            return "title_first_symbol"
+        default:
+            return ""
+        }
+    }
+
     // Children
 
     model: MLVideoModel {


=====================================
modules/gui/qt/meson.build
=====================================
@@ -601,7 +601,7 @@ qml_modules += {
     'sources': files(
         'medialibrary/qml/ArtistTopBanner.qml',
         'medialibrary/qml/AudioGridItem.qml',
-        'medialibrary/qml/MediaGroupDisplay.qml',
+        'medialibrary/qml/VideoGroupDisplay.qml',
         'medialibrary/qml/MusicAlbums.qml',
         'medialibrary/qml/MusicAlbumsDisplay.qml',
         'medialibrary/qml/MusicAlbumsGridExpandDelegate.qml',


=====================================
po/POTFILES.in
=====================================
@@ -781,7 +781,7 @@ modules/gui/qt/medialibrary/mlvideogroupsmodel.cpp
 modules/gui/qt/medialibrary/mlvideogroupsmodel.hpp
 modules/gui/qt/medialibrary/qml/ArtistTopBanner.qml
 modules/gui/qt/medialibrary/qml/AudioGridItem.qml
-modules/gui/qt/medialibrary/qml/MediaGroupDisplay.qml
+modules/gui/qt/medialibrary/qml/VideoGroupDisplay.qml
 modules/gui/qt/medialibrary/qml/MusicAlbums.qml
 modules/gui/qt/medialibrary/qml/MusicAlbumsDisplay.qml
 modules/gui/qt/medialibrary/qml/MusicAlbumsGridExpandDelegate.qml



View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/e997e6ac87affbc708d9dbe9511d87272d7714b3...592eab2abcb1895f288f7d1b1c44f1a211a74cdd

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/e997e6ac87affbc708d9dbe9511d87272d7714b3...592eab2abcb1895f288f7d1b1c44f1a211a74cdd
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