[vlc-commits] qml: increase minimum width of views in toolbar editor

Fatih Uzunoglu git at videolan.org
Tue Apr 6 09:54:50 UTC 2021


vlc | branch: master | Fatih Uzunoglu <fuzun54 at outlook.com> | Fri Apr  2 01:22:22 2021 +0300| [de81809a25a712bacfbd5287722ca539150ded7d] | committer: Pierre Lamot

qml: increase minimum width of views in toolbar editor

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

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

 modules/gui/qt/dialogs/toolbar/qml/ToolbarEditor.qml | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/modules/gui/qt/dialogs/toolbar/qml/ToolbarEditor.qml b/modules/gui/qt/dialogs/toolbar/qml/ToolbarEditor.qml
index f38705666a..e6ea6cd852 100644
--- a/modules/gui/qt/dialogs/toolbar/qml/ToolbarEditor.qml
+++ b/modules/gui/qt/dialogs/toolbar/qml/ToolbarEditor.qml
@@ -17,7 +17,7 @@
  *****************************************************************************/
 import QtQuick 2.11
 import QtQuick.Controls 2.4
-import QtQuick.Layouts 1.3
+import QtQuick.Layouts 1.11
 import QtQml.Models 2.11
 
 import org.videolan.vlc 0.1
@@ -115,7 +115,7 @@ Rectangle{
                         Layout.fillHeight: true
 
                         Layout.fillWidth: count > 0 || (playerBtnDND_left.count === 0 && playerBtnDND_center.count === 0 && playerBtnDND_right.count === 0)
-                        Layout.minimumWidth: centerMetric.width
+                        Layout.minimumWidth: centerMetric.width * 1.25
                         Layout.leftMargin: VLCStyle.margin_xsmall
                         Layout.rightMargin: VLCStyle.margin_xsmall
 
@@ -149,7 +149,7 @@ Rectangle{
                         Layout.fillHeight: true
 
                         Layout.fillWidth: count > 0 || (playerBtnDND_left.count === 0 && playerBtnDND_center.count === 0 && playerBtnDND_right.count === 0)
-                        Layout.minimumWidth: centerMetric.width
+                        Layout.minimumWidth: centerMetric.width * 1.25
                         Layout.leftMargin: VLCStyle.margin_xsmall
                         Layout.rightMargin: VLCStyle.margin_xsmall
 
@@ -183,7 +183,7 @@ Rectangle{
                         Layout.fillHeight: true
 
                         Layout.fillWidth: count > 0 || (playerBtnDND_left.count === 0 && playerBtnDND_center.count === 0 && playerBtnDND_right.count === 0)
-                        Layout.minimumWidth: centerMetric.width
+                        Layout.minimumWidth: centerMetric.width * 1.25
                         Layout.leftMargin: VLCStyle.margin_xsmall
                         Layout.rightMargin: VLCStyle.margin_xsmall
 



More information about the vlc-commits mailing list