[vlc-devel] [PATCH 07/16] qml: Add Editor Dummy Button

Rohan Rajpal rohan17089 at iiitd.ac.in
Wed Jul 31 14:30:47 CEST 2019


Visual button to use in the editor
---
 modules/gui/qt/Makefile.am                    |  1 +
 .../gui/qt/qml/dialogs/EditorDummyButton.qml  | 33 +++++++++++++++++++
 modules/gui/qt/vlc.qrc                        |  1 +
 3 files changed, 35 insertions(+)
 create mode 100644 modules/gui/qt/qml/dialogs/EditorDummyButton.qml

diff --git a/modules/gui/qt/Makefile.am b/modules/gui/qt/Makefile.am
index bdf5dcd5cf..d049d80859 100644
--- a/modules/gui/qt/Makefile.am
+++ b/modules/gui/qt/Makefile.am
@@ -559,6 +559,7 @@ libqt_plugin_la_QML = \
 	gui/qt/qml/player/TopBar.qml \
 	gui/qt/qml/dialogs/Dialogs.qml \
 	gui/qt/qml/dialogs/ModalDialog.qml \
+	gui/qt/qml/dialogs/EditorDummyButton.qml \
 	gui/qt/qml/utils/DNDLabel.qml \
 	gui/qt/qml/utils/ToolTipArea.qml \
 	gui/qt/qml/utils/DrawerExt.qml \
diff --git a/modules/gui/qt/qml/dialogs/EditorDummyButton.qml b/modules/gui/qt/qml/dialogs/EditorDummyButton.qml
new file mode 100644
index 0000000000..70349f5b94
--- /dev/null
+++ b/modules/gui/qt/qml/dialogs/EditorDummyButton.qml
@@ -0,0 +1,33 @@
+/*****************************************************************************
+ * Copyright (C) 2019 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 org.videolan.vlc 0.1
+
+import "qrc:///style/"
+
+Label {
+    color: VLCStyle.colors.buttonText
+
+    font.pixelSize: VLCStyle.icon_medium
+    font.family: VLCIcons.fontFamily
+
+    verticalAlignment: Text.AlignVCenter
+    horizontalAlignment: Text.AlignHCenter
+}
diff --git a/modules/gui/qt/vlc.qrc b/modules/gui/qt/vlc.qrc
index 1325024318..73898ccc04 100644
--- a/modules/gui/qt/vlc.qrc
+++ b/modules/gui/qt/vlc.qrc
@@ -264,5 +264,6 @@
     <qresource prefix="/dialogs">
         <file alias="Dialogs.qml">qml/dialogs/Dialogs.qml</file>
         <file alias="ModalDialog.qml">qml/dialogs/ModalDialog.qml</file>
+        <file alias="EditorDummyButton.qml">qml/dialogs/EditorDummyButton.qml</file>
     </qresource>
 </RCC>
-- 
2.17.1



More information about the vlc-devel mailing list