[vlc-devel] [PATCH 05/18] qml: add busy indicator to TabButtonExt
Prince Gupta
guptaprince8832 at gmail.com
Wed Sep 23 19:40:03 CEST 2020
---
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
+ }
}
--
2.25.1
More information about the vlc-devel
mailing list