[vlc-commits] [Git][videolan/vlc][master] qml: make it possible to provide model in `LocalTabBar`

Pierre Lamot (@chub) gitlab at videolan.org
Mon Nov 10 12:26:40 UTC 2025



Pierre Lamot pushed to branch master at VideoLAN / VLC


Commits:
5bbe3a91 by Fatih Uzunoglu at 2025-11-10T10:59:00+00:00
qml: make it possible to provide model in `LocalTabBar`

With 0a43e1d0, it is no longer possible to assign an
external model because `Container` model is read-only.

With this patch, it is now possible to set the model.
The additional `Repeater` creates the required items,
and the internal `Repeater` of `NavigableRow` continues
to act as a proxy.

- - - - -


1 changed file:

- modules/gui/qt/widgets/qml/LocalTabBar.qml


Changes:

=====================================
modules/gui/qt/widgets/qml/LocalTabBar.qml
=====================================
@@ -30,11 +30,17 @@ NavigableRow {
 
     Accessible.role: Accessible.PageTabList
 
-    delegate: BannerTabButton {
-        text: model.displayText
-        selected: model.name === row.currentView
-        showCurrentIndicator: false
-        height: VLCStyle.localToolbar_height
-        onClicked: row.clicked(index)
+    property alias model: repeater.model
+
+    Repeater {
+        id: repeater
+
+        delegate: BannerTabButton {
+            text: model.displayText
+            selected: model.name === row.currentView
+            showCurrentIndicator: false
+            height: VLCStyle.localToolbar_height
+            onClicked: row.clicked(index)
+        }
     }
 }



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

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