[vlc-devel] [PATCH 04/21] qt: add artwork info control to miniplayer default style

Fatih Uzunoglu fuzun54 at outlook.com
Sat Nov 7 17:53:23 CET 2020


---
 .../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 70cb6425b9..d3c5de125d 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)
-- 
2.25.1



More information about the vlc-devel mailing list