[vlc-commits] [Git][videolan/vlc][master] qml: add missing bindings in ControlBar

Hugo Beauzée-Luyssen (@chouquette) gitlab at videolan.org
Mon Oct 11 09:43:14 UTC 2021



Hugo Beauzée-Luyssen pushed to branch master at VideoLAN / VLC


Commits:
45d3d2bd by Fatih Uzunoglu at 2021-10-11T08:51:04+00:00
qml: add missing bindings in ControlBar

- - - - -


1 changed file:

- modules/gui/qt/player/qml/ControlBar.qml


Changes:

=====================================
modules/gui/qt/player/qml/ControlBar.qml
=====================================
@@ -69,8 +69,8 @@ Control {
         trackPositionSlider.visible = true
         mediaTime.visible = true
         mediaRemainingTime.visible = true
-        mediaTime.font.pixelSize = VLCStyle.fontSize_normal
-        mediaRemainingTime.font.pixelSize = VLCStyle.fontSize_normal
+        mediaTime.font.pixelSize = Qt.binding(function() { return VLCStyle.fontSize_normal })
+        mediaRemainingTime.font.pixelSize = Qt.binding(function() { return VLCStyle.fontSize_normal })
         row2.Layout.leftMargin = 0
         row2.Layout.rightMargin = 0
 
@@ -92,10 +92,10 @@ Control {
         case ControlBar.TimeTextPosition.LeftRightSlider:
             row1.children = []
             row2.children = [mediaTime, trackPositionSlider, mediaRemainingTime]
-            row2.Layout.leftMargin = VLCStyle.margin_xsmall
-            row2.Layout.rightMargin = VLCStyle.margin_xsmall
-            mediaTime.font.pixelSize = VLCStyle.fontSize_small
-            mediaRemainingTime.font.pixelSize = VLCStyle.fontSize_small
+            row2.Layout.leftMargin = Qt.binding(function() { return VLCStyle.margin_xsmall })
+            row2.Layout.rightMargin = Qt.binding(function() { return VLCStyle.margin_xsmall })
+            mediaTime.font.pixelSize = Qt.binding(function() { return VLCStyle.fontSize_small })
+            mediaRemainingTime.font.pixelSize = Qt.binding(function() { return VLCStyle.fontSize_small })
             trackPositionSlider.Layout.alignment = Qt.AlignVCenter
             break;
 



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

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/45d3d2bde4b6ca17f359d5748a864976b1bc00bc
You're receiving this email because of your account on code.videolan.org.




More information about the vlc-commits mailing list