[vlc-commits] qml: allow to change configs in ControlBar

Prince Gupta git at videolan.org
Mon Mar 15 10:33:00 UTC 2021


vlc | branch: master | Prince Gupta <guptaprince8832 at gmail.com> | Mon Feb  8 21:10:55 2021 +0530| [b22cbb607f5c429cca31f327100fb839ca501879] | committer: Pierre Lamot

qml: allow to change configs in ControlBar

Signed-off-by: Pierre Lamot <pierre at videolabs.io>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b22cbb607f5c429cca31f327100fb839ca501879
---

 modules/gui/qt/player/qml/ControlBar.qml | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/modules/gui/qt/player/qml/ControlBar.qml b/modules/gui/qt/player/qml/ControlBar.qml
index 705c7b197c..98b6b6704e 100644
--- a/modules/gui/qt/player/qml/ControlBar.qml
+++ b/modules/gui/qt/player/qml/ControlBar.qml
@@ -42,6 +42,7 @@ Widgets.NavigableFocusScope {
     readonly property alias sliderY: row2.y
     property int textPosition: ControlBar.TimeTextPosition.AboveSlider
     property VLCColors colors: VLCStyle.nightColors
+    property var configs: ["MainPlayerToolbar-left", "MainPlayerToolbar-center", "MainPlayerToolbar-right"]
 
     signal requestLockUnlockAutoHide(bool lock, var source)
 
@@ -197,18 +198,18 @@ Widgets.NavigableFocusScope {
     PlayerControlBarModel{
         id:playerControlBarModel_left
         mainCtx: mainctx
-        configName: "MainPlayerToolbar-left"
+        configName: root.configs[0]
     }
 
     PlayerControlBarModel{
         id:playerControlBarModel_center
         mainCtx: mainctx
-        configName: "MainPlayerToolbar-center"
+        configName: root.configs[1]
     }
 
     PlayerControlBarModel{
         id:playerControlBarModel_right
         mainCtx: mainctx
-        configName: "MainPlayerToolbar-right"
+        configName: root.configs[2]
     }
 }



More information about the vlc-commits mailing list