[vlc-commits] qml: add busy indicator to TabButtonExt

Prince Gupta git at videolan.org
Mon Sep 28 14:01:27 CEST 2020


vlc | branch: master | Prince Gupta <guptaprince8832 at gmail.com> | Fri Sep 11 17:19:20 2020 +0530| [a479cfaf8ebb20a73066b2c3826c5448d1c58233] | committer: Pierre Lamot

qml: add busy indicator to TabButtonExt

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

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

 modules/gui/qt/widgets/qml/TabButtonExt.qml | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/modules/gui/qt/widgets/qml/TabButtonExt.qml b/modules/gui/qt/widgets/qml/TabButtonExt.qml
index 339ae5cdd1..6ec3682746 100644
--- a/modules/gui/qt/widgets/qml/TabButtonExt.qml
+++ b/modules/gui/qt/widgets/qml/TabButtonExt.qml
@@ -38,6 +38,7 @@ T.TabButton {
     property string iconTxt: ""
     property bool selected: false
     property color color: VLCStyle.colors.text
+    property bool busy: false
 
     font.pixelSize: VLCStyle.fontSize_normal
 
@@ -72,12 +73,18 @@ T.TabButton {
                     anchors.fill: parent
                     horizontalAlignment: Text.AlignHCenter
                     verticalAlignment: Text.AlignVCenter
+                    visible: !control.busy
 
                     text: control.iconTxt
                     color: control.color
 
                     font.pixelSize: VLCIcons.pixelSize(VLCStyle.icon_topbar)
                 }
+
+                BusyIndicator {
+                    anchors.centerIn: parent
+                    running: control.busy
+                }
             }
 
 



More information about the vlc-commits mailing list