[vlc-commits] qml: hide header section text when not applicable

Prince Gupta git at videolan.org
Tue Apr 6 13:12:13 UTC 2021


vlc | branch: master | Prince Gupta <guptaprince8832 at gmail.com> | Thu Mar 18 18:14:35 2021 +0530| [b03af1e1b1729bd5f99cda5bc7c1322e763fe480] | committer: Pierre Lamot

qml: hide header section text when not applicable

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

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

 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 {



More information about the vlc-commits mailing list