[vlc-devel] [PATCH 14/30] qml: only leave width for section if section are actually used in KeyNavigableTableView
Prince Gupta
guptaprince8832 at gmail.com
Mon Dec 14 14:27:52 CET 2020
---
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 53f33204b6..c9cd24338a 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
--
2.25.1
More information about the vlc-devel
mailing list