[vlc-commits] qml: fix layouting of Miniplayer

Pierre Lamot git at videolan.org
Thu Aug 29 10:45:17 CEST 2019


vlc | branch: master | Pierre Lamot <pierre at videolabs.io> | Thu Aug 29 09:49:40 2019 +0200| [9f22193eb87d1b7d755b44c0ba1f1c17ce1eb47c] | committer: Jean-Baptiste Kempf

qml: fix layouting of Miniplayer

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

 modules/gui/qt/qml/player/MiniPlayer.qml | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/modules/gui/qt/qml/player/MiniPlayer.qml b/modules/gui/qt/qml/player/MiniPlayer.qml
index 19dd5e95b5..de3c651fe4 100644
--- a/modules/gui/qt/qml/player/MiniPlayer.qml
+++ b/modules/gui/qt/qml/player/MiniPlayer.qml
@@ -62,6 +62,7 @@ Utils.NavigableFocusScope {
             Rectangle {
                 id: playingItemInfo
                 Layout.fillHeight: true
+                Layout.preferredWidth: playingItemInfoRow.implicitWidth
                 width: childrenRect.width
                 focus: true
                 color: activeFocus ? VLCStyle.colors.accent :  "transparent"
@@ -82,6 +83,7 @@ Utils.NavigableFocusScope {
                 }
 
                 Row {
+                    id: playingItemInfoRow
                     anchors.top: parent.top
                     anchors.bottom: parent.bottom
 
@@ -127,11 +129,14 @@ Utils.NavigableFocusScope {
 
             PlayerButtonsLayout {
                 id: buttonrow
-                Layout.alignment: Qt.AlignRight | Qt.AlignVCenter
-                Layout.rightMargin: VLCStyle.margin_normal
+
                 model: miniPlayerModel
                 defaultSize: VLCStyle.icon_normal
 
+                Layout.alignment: Qt.AlignVCenter
+                Layout.rightMargin: VLCStyle.margin_normal
+                Layout.preferredWidth: buttonrow.implicitWidth
+                Layout.preferredHeight: buttonrow.implicitHeight
 
                 onActionUp: root.actionUp(index)
                 onActionDown: root.actionDown(index)



More information about the vlc-commits mailing list