[vlc-devel] [PATCH 3/6] qml: introduce MiniPlayerBottomMargin in MainInterface

Prince Gupta guptaprince8832 at gmail.com
Fri Nov 20 18:38:53 CET 2020


---
 modules/gui/qt/Makefile.am                    |  1 +
 .../qml/MiniPlayerBottomMargin.qml            | 22 +++++++++++++++++++
 modules/gui/qt/vlc.qrc                        |  1 +
 3 files changed, 24 insertions(+)
 create mode 100644 modules/gui/qt/maininterface/qml/MiniPlayerBottomMargin.qml

diff --git a/modules/gui/qt/Makefile.am b/modules/gui/qt/Makefile.am
index f327b81317..10d111567c 100644
--- a/modules/gui/qt/Makefile.am
+++ b/modules/gui/qt/Makefile.am
@@ -615,6 +615,7 @@ libqt_plugin_la_QML = \
 	gui/qt/maininterface/qml/BannerSources.qml \
 	gui/qt/maininterface/qml/MainInterface.qml \
 	gui/qt/maininterface/qml/MainDisplay.qml \
+	gui/qt/maininterface/qml/MiniPlayerBottomMargin.qml \
 	gui/qt/maininterface/qml/NoMedialibHome.qml \
 	gui/qt/medialibrary/qml/ArtistTopBanner.qml \
 	gui/qt/medialibrary/qml/AudioGridItem.qml \
diff --git a/modules/gui/qt/maininterface/qml/MiniPlayerBottomMargin.qml b/modules/gui/qt/maininterface/qml/MiniPlayerBottomMargin.qml
new file mode 100644
index 0000000000..eb96bbd102
--- /dev/null
+++ b/modules/gui/qt/maininterface/qml/MiniPlayerBottomMargin.qml
@@ -0,0 +1,22 @@
+/*****************************************************************************
+ * 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
+
+Item {
+    height: miniPlayer.height
+}
diff --git a/modules/gui/qt/vlc.qrc b/modules/gui/qt/vlc.qrc
index 0548e1c9ca..170ee549bd 100644
--- a/modules/gui/qt/vlc.qrc
+++ b/modules/gui/qt/vlc.qrc
@@ -180,6 +180,7 @@
         <file alias="MainInterface.qml">maininterface/qml/MainInterface.qml</file>
         <file alias="MainDisplay.qml">maininterface/qml/MainDisplay.qml</file>
         <file alias="NoMedialibHome.qml">maininterface/qml/NoMedialibHome.qml</file>
+        <file alias="MiniPlayerBottomMargin.qml">maininterface/qml/MiniPlayerBottomMargin.qml</file>
     </qresource>
     <qresource prefix="/widgets">
         <file alias="BannerTabButton.qml">widgets/qml/BannerTabButton.qml</file>
-- 
2.25.1



More information about the vlc-devel mailing list