[vlc-devel] [PATCH 12/33] QML: simplify the section header of KeyNavigableListView

Adrien Maglo magsoft at videolan.org
Wed Jun 12 14:01:19 CEST 2019


---
 .../gui/qt/qml/utils/KeyNavigableListView.qml | 26 ++++++++-----------
 1 file changed, 11 insertions(+), 15 deletions(-)

diff --git a/modules/gui/qt/qml/utils/KeyNavigableListView.qml b/modules/gui/qt/qml/utils/KeyNavigableListView.qml
index 4490282d91..ad7e864779 100644
--- a/modules/gui/qt/qml/utils/KeyNavigableListView.qml
+++ b/modules/gui/qt/qml/utils/KeyNavigableListView.qml
@@ -59,24 +59,20 @@ NavigableFocusScope {
 
     Component {
         id: sectionHeading
-        Rectangle {
-            width: parent.width
-            height: childrenRect.height
 
-            Column {
-                width: parent.width
+        Column {
+            width: parent.width
 
-                Text {
-                    text: section
-                    font.pixelSize: 20
-                    color: VLCStyle.colors.accent
-                }
+            Text {
+                text: section
+                font.pixelSize: VLCStyle.fontSize_xlarge
+                color: VLCStyle.colors.accent
+            }
 
-                Rectangle {
-                    width: parent.width
-                    height: 1
-                    color: VLCStyle.colors.textInactive
-                }
+            Rectangle {
+                width: parent.width
+                height: 1
+                color: VLCStyle.colors.textInactive
             }
         }
     }
-- 
2.20.1



More information about the vlc-devel mailing list