[vlc-commits] qml: add gridView header

Abel Tesfaye git at videolan.org
Tue Jul 30 17:57:02 CEST 2019


vlc | branch: master | Abel Tesfaye <Abeltesfaye45 at gmail.com> | Fri Jun 21 21:03:50 2019 +0300| [4c9b69f874022441d35736c3b3c1ed64cb19ff01] | committer: Jean-Baptiste Kempf

qml: add gridView header

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

 modules/gui/qt/qml/mediacenter/MCVideoDisplay.qml | 39 +++++++++++++++++++++++
 1 file changed, 39 insertions(+)

diff --git a/modules/gui/qt/qml/mediacenter/MCVideoDisplay.qml b/modules/gui/qt/qml/mediacenter/MCVideoDisplay.qml
index ad75cff54e..9438849324 100644
--- a/modules/gui/qt/qml/mediacenter/MCVideoDisplay.qml
+++ b/modules/gui/qt/qml/mediacenter/MCVideoDisplay.qml
@@ -124,6 +124,45 @@ Utils.NavigableFocusScope {
             onActionDown: root.actionDown(index)
             onActionUp: root.actionUp(index)
             onActionCancel: root.actionCancel(index)
+
+            header:Item {
+                id: videosHeader
+                height: childrenRect.height + VLCStyle.margin_normal
+                anchors{
+                    left: parent.left
+                    right: parent.right
+                }
+
+                Label {
+                    id: videosTxt
+
+                    anchors.top: videosHeader.top
+                    anchors.left: videosHeader.left
+                    anchors.topMargin: VLCStyle.margin_normal
+                    anchors.leftMargin: VLCStyle.margin_large
+
+                    font.pixelSize: VLCStyle.fontSize_xxlarge
+                    color: VLCStyle.colors.text
+                    text: qsTr("Videos")
+                    font.weight: Font.Bold
+                }
+
+                Rectangle {
+                    id: videosSeparator
+                    height: VLCStyle.heightBar_xxxsmall
+                    radius: 2
+
+                    anchors{
+                        left: videosHeader.left
+                        right: videosHeader.right
+                        top: videosTxt.bottom
+                        topMargin: VLCStyle.margin_small
+                        leftMargin: VLCStyle.margin_large
+
+                    }
+                    color: VLCStyle.colors.bgAlt
+                }
+            }
         }
     }
 



More information about the vlc-commits mailing list