[vlc-commits] qml: add isMiniplayer property to ControlButtons

Fatih Uzunoglu git at videolan.org
Thu Aug 27 12:44:45 CEST 2020


vlc | branch: master | Fatih Uzunoglu <fuzun54 at outlook.com> | Mon Aug  3 19:09:26 2020 +0300| [e507fe8c4707506365d0e1ee6ce91c9be7bb2928] | committer: Pierre Lamot

qml: add isMiniplayer property to ControlButtons

Signed-off-by: Pierre Lamot <pierre at videolabs.io>

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

 modules/gui/qt/player/qml/ControlButtons.qml | 2 ++
 modules/gui/qt/player/qml/MiniPlayer.qml     | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/modules/gui/qt/player/qml/ControlButtons.qml b/modules/gui/qt/player/qml/ControlButtons.qml
index 2312548dfb..b07cfe243b 100644
--- a/modules/gui/qt/player/qml/ControlButtons.qml
+++ b/modules/gui/qt/player/qml/ControlButtons.qml
@@ -27,6 +27,8 @@ import "qrc:///menus/" as Menus
 import "qrc:///style/"
 
 Item{
+    property bool isMiniplayer: false
+
     property var buttonL: [
         { id:  PlayerControlBarModel.PLAY_BUTTON, label: VLCIcons.play, text: i18n.qtr("Play")},
         { id:  PlayerControlBarModel.STOP_BUTTON, label: VLCIcons.stop, text: i18n.qtr("Stop")},
diff --git a/modules/gui/qt/player/qml/MiniPlayer.qml b/modules/gui/qt/player/qml/MiniPlayer.qml
index 558e866a1b..507a282d0c 100644
--- a/modules/gui/qt/player/qml/MiniPlayer.qml
+++ b/modules/gui/qt/player/qml/MiniPlayer.qml
@@ -213,6 +213,8 @@ Widgets.NavigableFocusScope {
 
             ControlButtons {
                 id: controlmodelbuttons
+
+                isMiniplayer: true
             }
 
             Keys.onPressed: {



More information about the vlc-commits mailing list