[vlc-devel] [PATCH 06/28] qml: add ListSubtitleLabel widget

Fatih Uzunoglu fuzun54 at outlook.com
Tue Jul 21 19:28:36 CEST 2020


---
 modules/gui/qt/Makefile.am                    |  3 ++-
 modules/gui/qt/vlc.qrc                        |  1 +
 .../gui/qt/widgets/qml/ListSubtitleLabel.qml  | 21 +++++++++++++++++++
 3 files changed, 24 insertions(+), 1 deletion(-)
 create mode 100644 modules/gui/qt/widgets/qml/ListSubtitleLabel.qml

diff --git a/modules/gui/qt/Makefile.am b/modules/gui/qt/Makefile.am
index 41a51154bd..b02cb7440d 100644
--- a/modules/gui/qt/Makefile.am
+++ b/modules/gui/qt/Makefile.am
@@ -692,7 +692,8 @@ libqt_plugin_la_QML = \
 	gui/qt/widgets/qml/TextToolButton.qml \
 	gui/qt/widgets/qml/ToolTipArea.qml \
 	gui/qt/widgets/qml/VideoProgressBar.qml \
-	gui/qt/widgets/qml/VideoQualityLabel.qml
+	gui/qt/widgets/qml/VideoQualityLabel.qml \
+	gui/qt/widgets/qml/ListSubtitleLabel.qml
 
 EXTRA_DIST += gui/qt/vlc.qrc $(libqt_plugin_la_RES)
 
diff --git a/modules/gui/qt/vlc.qrc b/modules/gui/qt/vlc.qrc
index b3036063e8..67cae89716 100644
--- a/modules/gui/qt/vlc.qrc
+++ b/modules/gui/qt/vlc.qrc
@@ -219,6 +219,7 @@
         <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>
+        <file alias="ListSubtitleLabel.qml">widgets/qml/ListSubtitleLabel.qml</file>
     </qresource>
     <qresource prefix="/util">
         <file alias="SelectableDelegateModel.qml">util/qml/SelectableDelegateModel.qml</file>
diff --git a/modules/gui/qt/widgets/qml/ListSubtitleLabel.qml b/modules/gui/qt/widgets/qml/ListSubtitleLabel.qml
new file mode 100644
index 0000000000..a9243f5f4d
--- /dev/null
+++ b/modules/gui/qt/widgets/qml/ListSubtitleLabel.qml
@@ -0,0 +1,21 @@
+/*****************************************************************************
+ * 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.
+ *****************************************************************************/
+
+ListLabel {
+    opacity: 0.7
+}
-- 
2.25.1



More information about the vlc-devel mailing list