[vlc-commits] qml: correctly set cellHeight for grid items in NetworkBrowseDisplay

Prince Gupta git at videolan.org
Thu Aug 27 12:44:20 CEST 2020


vlc | branch: master | Prince Gupta <guptaprince8832 at gmail.com> | Wed Aug 19 22:07:12 2020 +0530| [93dbbbdced78a505ba1db6c2cecf96d78991af86] | committer: Pierre Lamot

qml: correctly set cellHeight for grid items in NetworkBrowseDisplay

there is no subtitle but height for that included in VLCStyle.gridItem_network_height

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

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

 modules/gui/qt/network/qml/NetworkBrowseDisplay.qml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/gui/qt/network/qml/NetworkBrowseDisplay.qml b/modules/gui/qt/network/qml/NetworkBrowseDisplay.qml
index e9ddc006bf..87edded22d 100644
--- a/modules/gui/qt/network/qml/NetworkBrowseDisplay.qml
+++ b/modules/gui/qt/network/qml/NetworkBrowseDisplay.qml
@@ -184,7 +184,7 @@ Widgets.NavigableFocusScope {
             }
 
             cellWidth: VLCStyle.gridItem_network_width
-            cellHeight: VLCStyle.gridItem_network_height
+            cellHeight: VLCStyle.gridCover_network_height + VLCStyle.margin_xsmall + VLCStyle.fontHeight_normal
 
             delegate: NetworkGridItem {
                 id: delegateGrid
@@ -193,6 +193,7 @@ Widgets.NavigableFocusScope {
                 property int index: -1
 
                 subtitle: ""
+                height: VLCStyle.gridCover_network_height + VLCStyle.margin_xsmall + VLCStyle.fontHeight_normal
 
                 onPlayClicked: selectionModel.model.addAndPlay( index )
                 onItemClicked : {



More information about the vlc-commits mailing list