[vlc-commits] qt: update miniplayer default controlbar customization

Fatih Uzunoglu git at videolan.org
Mon Nov 16 10:04:08 CET 2020


vlc | branch: master | Fatih Uzunoglu <fuzun54 at outlook.com> | Thu Aug 13 23:20:10 2020 +0300| [949d83803061c859966463bad2afdc568953a064] | committer: Pierre Lamot

qt: update miniplayer default controlbar customization

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

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

 modules/gui/qt/player/playercontrolbarmodel.cpp | 70 +++++++++++++++----------
 1 file changed, 42 insertions(+), 28 deletions(-)

diff --git a/modules/gui/qt/player/playercontrolbarmodel.cpp b/modules/gui/qt/player/playercontrolbarmodel.cpp
index 877b77a8ba..cea05e97a4 100644
--- a/modules/gui/qt/player/playercontrolbarmodel.cpp
+++ b/modules/gui/qt/player/playercontrolbarmodel.cpp
@@ -27,34 +27,48 @@ enum default_align {
     SIZE
 };
 
-static const QVector<PlayerControlBarModel::IconToolButton> MAIN_TB_DEFAULT[default_align::SIZE] = {
-                                                                            // left
-                                                                            {{PlayerControlBarModel::LANG_BUTTON},
-                                                                            {PlayerControlBarModel::MENU_BUTTON}},
-                                                                            // center
-                                                                            {{PlayerControlBarModel::RANDOM_BUTTON},
-                                                                            {PlayerControlBarModel::PREVIOUS_BUTTON},
-                                                                            {PlayerControlBarModel::PLAY_BUTTON},
-                                                                            {PlayerControlBarModel::NEXT_BUTTON},
-                                                                            {PlayerControlBarModel::LOOP_BUTTON}},
-                                                                            // right
-                                                                            {{PlayerControlBarModel::VOLUME},
-                                                                            {PlayerControlBarModel::FULLSCREEN_BUTTON}}
-                                                                       };
-
-static const QVector<PlayerControlBarModel::IconToolButton> MINI_TB_DEFAULT[default_align::SIZE] = {
-                                                                           // left
-                                                                           {},
-                                                                           // center
-                                                                           {{PlayerControlBarModel::RANDOM_BUTTON},
-                                                                           {PlayerControlBarModel::PREVIOUS_BUTTON},
-                                                                           {PlayerControlBarModel::PLAY_BUTTON},
-                                                                           {PlayerControlBarModel::NEXT_BUTTON},
-                                                                           {PlayerControlBarModel::LOOP_BUTTON}},
-                                                                           // right
-                                                                           {{PlayerControlBarModel::VOLUME},
-                                                                           {PlayerControlBarModel::PLAYER_SWITCH_BUTTON}}
-                                                                       };
+static const QVector<PlayerControlBarModel::IconToolButton> MAIN_TB_DEFAULT[default_align::SIZE] =
+{
+    {
+        // left
+        {PlayerControlBarModel::LANG_BUTTON},
+        {PlayerControlBarModel::MENU_BUTTON}
+    },
+    {
+        // center
+        {PlayerControlBarModel::RANDOM_BUTTON},
+        {PlayerControlBarModel::PREVIOUS_BUTTON},
+        {PlayerControlBarModel::PLAY_BUTTON},
+        {PlayerControlBarModel::NEXT_BUTTON},
+        {PlayerControlBarModel::LOOP_BUTTON}
+    },
+    {
+        // right
+        {PlayerControlBarModel::VOLUME},
+        {PlayerControlBarModel::FULLSCREEN_BUTTON}
+    }
+};
+
+static const QVector<PlayerControlBarModel::IconToolButton> MINI_TB_DEFAULT[default_align::SIZE] =
+{
+    {
+        // left
+        {PlayerControlBarModel::ARTWORK_INFO}
+    },
+    {
+        // center
+        {PlayerControlBarModel::RANDOM_BUTTON},
+        {PlayerControlBarModel::PREVIOUS_BUTTON},
+        {PlayerControlBarModel::PLAY_BUTTON},
+        {PlayerControlBarModel::NEXT_BUTTON},
+        {PlayerControlBarModel::LOOP_BUTTON}
+    },
+    {
+        // right
+        {PlayerControlBarModel::VOLUME},
+        {PlayerControlBarModel::PLAYER_SWITCH_BUTTON}
+    }
+};
 
 
 PlayerControlBarModel::PlayerControlBarModel(QObject *_parent) : QAbstractListModel(_parent)



More information about the vlc-commits mailing list