[vlc-devel] [PATCH 18/18] qml: hide header section text when not applicable

Prince Gupta guptaprince8832 at gmail.com
Thu Apr 1 14:29:53 UTC 2021


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

diff --git a/modules/gui/qt/widgets/qml/KeyNavigableTableView.qml b/modules/gui/qt/widgets/qml/KeyNavigableTableView.qml
index b732198e52..2e3438a62d 100644
--- a/modules/gui/qt/widgets/qml/KeyNavigableTableView.qml
+++ b/modules/gui/qt/widgets/qml/KeyNavigableTableView.qml
@@ -164,8 +164,10 @@ NavigableFocusScope {
                 leftPadding: VLCStyle.table_section_text_margin
                 text: view.currentSection
                 color: VLCStyle.colors.accent
-                visible: text !== "" && view.contentY > (row.height - col.height - row.topPadding)
                 verticalAlignment: Text.AlignTop
+                visible: view.headerPositioning === ListView.OverlayHeader
+                         && text !== ""
+                         && view.contentY > (row.height - col.height - row.topPadding)
             }
 
             Column {
-- 
2.27.0



More information about the vlc-devel mailing list