[vlc-devel] [PATCH 13/25] qml: allow to change configs in ControlBar
Prince Gupta
guptaprince8832 at gmail.com
Thu Mar 11 09:16:21 UTC 2021
---
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]
}
}
--
2.25.1
More information about the vlc-devel
mailing list