[vlc-devel] [PATCH 16/38] qml: add isMiniplayer property to ControlButtons

Fatih Uzunoglu fuzun54 at outlook.com
Thu Aug 20 19:55:25 CEST 2020


---
 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: {
-- 
2.25.1



More information about the vlc-devel mailing list