[vlc-commits] qml: introduce MenuLabel widget
Prince Gupta
git at videolan.org
Fri Jul 3 14:59:30 CEST 2020
vlc | branch: master | Prince Gupta <guptaprince8832 at gmail.com> | Mon Jun 15 20:55:03 2020 +0530| [41df7c94b84fb17957030985ed903299d1cd857c] | committer: Pierre Lamot
qml: introduce MenuLabel widget
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=41df7c94b84fb17957030985ed903299d1cd857c
---
modules/gui/qt/Makefile.am | 1 +
modules/gui/qt/vlc.qrc | 1 +
modules/gui/qt/widgets/qml/MenuLabel.qml | 28 ++++++++++++++++++++++++++++
3 files changed, 30 insertions(+)
diff --git a/modules/gui/qt/Makefile.am b/modules/gui/qt/Makefile.am
index a15ed6d90c..41a51154bd 100644
--- a/modules/gui/qt/Makefile.am
+++ b/modules/gui/qt/Makefile.am
@@ -674,6 +674,7 @@ libqt_plugin_la_QML = \
gui/qt/widgets/qml/MenuCaption.qml \
gui/qt/widgets/qml/MenuExt.qml \
gui/qt/widgets/qml/MenuItemExt.qml \
+ gui/qt/widgets/qml/MenuLabel.qml \
gui/qt/widgets/qml/NavigableCol.qml \
gui/qt/widgets/qml/NavigableFocusScope.qml \
gui/qt/widgets/qml/NavigableRow.qml \
diff --git a/modules/gui/qt/vlc.qrc b/modules/gui/qt/vlc.qrc
index ddb9c814b4..b3036063e8 100644
--- a/modules/gui/qt/vlc.qrc
+++ b/modules/gui/qt/vlc.qrc
@@ -218,6 +218,7 @@
<file alias="PlayCover.qml">widgets/qml/PlayCover.qml</file>
<file alias="MenuCaption.qml">widgets/qml/MenuCaption.qml</file>
<file alias="MediaCover.qml">widgets/qml/MediaCover.qml</file>
+ <file alias="MenuLabel.qml">widgets/qml/MenuLabel.qml</file>
</qresource>
<qresource prefix="/util">
<file alias="SelectableDelegateModel.qml">util/qml/SelectableDelegateModel.qml</file>
diff --git a/modules/gui/qt/widgets/qml/MenuLabel.qml b/modules/gui/qt/widgets/qml/MenuLabel.qml
new file mode 100644
index 0000000000..da260af3a5
--- /dev/null
+++ b/modules/gui/qt/widgets/qml/MenuLabel.qml
@@ -0,0 +1,28 @@
+/*****************************************************************************
+ * Copyright (C) 2020 VLC authors and VideoLAN
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * ( at your option ) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
+ *****************************************************************************/
+import QtQuick 2.11
+import QtQuick.Controls 2.4
+import "qrc:///style/"
+
+Label {
+ elide: Text.ElideRight
+ font.pixelSize: VLCStyle.fontSize_large
+ font.weight: Font.DemiBold
+ color: VLCStyle.colors.text
+ verticalAlignment: Text.AlignVCenter
+}
More information about the vlc-commits
mailing list