[vlc-commits] qml: fix scaling in toolbar editor

Fatih Uzunoglu git at videolan.org
Tue Apr 6 09:55:04 UTC 2021


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

qml: fix scaling in toolbar editor

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

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

 modules/gui/qt/dialogs/toolbar/qml/ToolbarEditorButtonList.qml | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/modules/gui/qt/dialogs/toolbar/qml/ToolbarEditorButtonList.qml b/modules/gui/qt/dialogs/toolbar/qml/ToolbarEditorButtonList.qml
index 8ec2dae238..aec3372adb 100644
--- a/modules/gui/qt/dialogs/toolbar/qml/ToolbarEditorButtonList.qml
+++ b/modules/gui/qt/dialogs/toolbar/qml/ToolbarEditorButtonList.qml
@@ -37,6 +37,9 @@ GridView{
 
     highlightMoveDuration: 0 //ms
 
+    cellWidth: VLCStyle.cover_small
+    cellHeight: cellWidth
+
     property alias removeInfoRectVisible: removeInfoRect.visible
 
     DropArea {
@@ -106,8 +109,8 @@ GridView{
         id:dragArea
         objectName: "buttonsList"
         hoverEnabled: true
-        width: VLCStyle.cover_small
-        height: width
+        width: cellWidth
+        height: cellHeight
 
         property bool held: false
         property int mIndex: controlButtons.buttonL[model.index].id



More information about the vlc-commits mailing list