[vlc-commits] qml: only leave width for section if section are actually used in KeyNavigableTableView

Prince Gupta git at videolan.org
Thu Dec 17 14:57:13 UTC 2020


vlc | branch: master | Prince Gupta <guptaprince8832 at gmail.com> | Fri Dec  4 19:39:04 2020 +0530| [6c533b1c9060c5a6b95f94536996e9a5ad7c11d6] | committer: Pierre Lamot

qml: only leave width for section if section are actually used in KeyNavigableTableView

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

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

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

diff --git a/modules/gui/qt/widgets/qml/KeyNavigableTableView.qml b/modules/gui/qt/widgets/qml/KeyNavigableTableView.qml
index ea9cc69be9..0a5a5129b9 100644
--- a/modules/gui/qt/widgets/qml/KeyNavigableTableView.qml
+++ b/modules/gui/qt/widgets/qml/KeyNavigableTableView.qml
@@ -69,7 +69,8 @@ NavigableFocusScope {
 
     property var selectionDelegateModel
     property real rowHeight: VLCStyle.tableRow_height
-    readonly property real availableRowWidth: width - ( VLCStyle.table_section_width * 2 )
+    readonly property real availableRowWidth: width
+                                              - ( !!section.property ? VLCStyle.table_section_width * 2 : 0 )
     property alias spacing: view.spacing
     property int horizontalSpacing: VLCStyle.column_margin_width
 



More information about the vlc-commits mailing list