Browse Source

qml: introduce `useCurrentSectionLabel` property in `TableViewExt`

Co-authored-by: Arpit Benjamin <arpitbenjamin2005@gmail.com>
pull/200/head
Fatih Uzunoglu 12 months ago
committed by Steve Lhomme
parent
commit
8d3b83c268
  1. 4
      modules/gui/qt/widgets/qml/TableViewExt.qml

4
modules/gui/qt/widgets/qml/TableViewExt.qml

@ -141,6 +141,7 @@ FocusScope {
- VLCStyle.contextButton_width - (VLCStyle.contextButton_margin * 2)
property bool sortingFromHeader: true
property bool useCurrentSectionLabel: true
// Aliases
@ -312,7 +313,8 @@ FocusScope {
text: view.currentSection
color: view.colorContext.accent
visible: view.headerPositioning === ListView.OverlayHeader
visible: root.useCurrentSectionLabel
&& view.headerPositioning === ListView.OverlayHeader
&& text !== ""
&& view.contentY > (row.height - col.height - row.topPadding)
&& row.visible

Loading…
Cancel
Save