[vlc-commits] [Git][videolan/vlc][master] qml: fix NavigableCol usage

Steve Lhomme (@robUx4) gitlab at videolan.org
Sun Nov 16 08:32:17 UTC 2025



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
ba6c975f by Pierre Lamot at 2025-11-16T08:13:35+00:00
qml: fix NavigableCol usage

- - - - -


1 changed file:

- modules/gui/qt/network/qml/BrowseHomeDisplay.qml


Changes:

=====================================
modules/gui/qt/network/qml/BrowseHomeDisplay.qml
=====================================
@@ -188,77 +188,75 @@ FocusScope {
 
             Navigation.parentItem: root
 
-            model: ObjectModel {
-                HomeDeviceView {
-                    id: foldersSection
+            HomeDeviceView {
+                id: foldersSection
 
-                    title: qsTr("Folders")
+                title: qsTr("Folders")
 
-                    model: StandardPathModel {
-                        //we only have a handfull of standard path (5 or 6)
-                        //so we don't limit them
+                model: StandardPathModel {
+                    //we only have a handfull of standard path (5 or 6)
+                    //so we don't limit them
 
-                        sortCriteria: MainCtx.sort.criteria
-                        sortOrder: MainCtx.sort.order
-                        searchPattern: MainCtx.search.pattern
-                    }
+                    sortCriteria: MainCtx.sort.criteria
+                    sortOrder: MainCtx.sort.order
+                    searchPattern: MainCtx.search.pattern
                 }
+            }
 
-                HomeDeviceView {
-                    id: computerSection
+            HomeDeviceView {
+                id: computerSection
 
-                    title: qsTr("Computer")
+                title: qsTr("Computer")
 
-                    model: NetworkDeviceModel {
-                        ctx: MainCtx
+                model: NetworkDeviceModel {
+                    ctx: MainCtx
 
-                        sd_source: NetworkDeviceModel.CAT_MYCOMPUTER
-                        source_name: "*"
+                    sd_source: NetworkDeviceModel.CAT_MYCOMPUTER
+                    source_name: "*"
 
-                        limit: computerSection.maximumCount
+                    limit: computerSection.maximumCount
 
-                        sortOrder: MainCtx.sort.order
-                        sortCriteria: MainCtx.sort.criteria
-                        searchPattern: MainCtx.search.pattern
-                    }
+                    sortOrder: MainCtx.sort.order
+                    sortCriteria: MainCtx.sort.criteria
+                    searchPattern: MainCtx.search.pattern
                 }
+            }
 
-                HomeDeviceView {
-                    id: deviceSection
+            HomeDeviceView {
+                id: deviceSection
 
-                    title: qsTr("Devices")
+                title: qsTr("Devices")
 
-                    model: NetworkDeviceModel {
-                        ctx: MainCtx
+                model: NetworkDeviceModel {
+                    ctx: MainCtx
 
-                        limit: deviceSection.maximumCount
+                    limit: deviceSection.maximumCount
 
-                        sortOrder: MainCtx.sort.order
-                        sortCriteria: MainCtx.sort.criteria
-                        searchPattern: MainCtx.search.pattern
+                    sortOrder: MainCtx.sort.order
+                    sortCriteria: MainCtx.sort.criteria
+                    searchPattern: MainCtx.search.pattern
 
-                        sd_source: NetworkDeviceModel.CAT_DEVICES
-                        source_name: "*"
-                    }
+                    sd_source: NetworkDeviceModel.CAT_DEVICES
+                    source_name: "*"
                 }
+            }
 
-                HomeDeviceView {
-                    id: lanSection
+            HomeDeviceView {
+                id: lanSection
 
-                    title: qsTr("Network")
+                title: qsTr("Network")
 
-                    model: NetworkDeviceModel {
-                        ctx: MainCtx
+                model: NetworkDeviceModel {
+                    ctx: MainCtx
 
-                        sd_source: NetworkDeviceModel.CAT_LAN
-                        source_name: "*"
+                    sd_source: NetworkDeviceModel.CAT_LAN
+                    source_name: "*"
 
-                        limit: lanSection.maximumCount
+                    limit: lanSection.maximumCount
 
-                        sortOrder: MainCtx.sort.order
-                        sortCriteria: MainCtx.sort.criteria
-                        searchPattern: MainCtx.search.pattern
-                    }
+                    sortOrder: MainCtx.sort.order
+                    sortCriteria: MainCtx.sort.criteria
+                    searchPattern: MainCtx.search.pattern
                 }
             }
         }



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

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