[vlc-commits] [Git][videolan/vlc][master] 2 commits: qml: set the cursor busy in `MusicTrackListDisplay.qml` when the model is busy
Felix Paul Kühne (@fkuehne)
gitlab at videolan.org
Sat Jun 7 14:17:37 UTC 2025
Felix Paul Kühne pushed to branch master at VideoLAN / VLC
Commits:
661de41f by Fatih Uzunoglu at 2025-06-07T14:01:24+00:00
qml: set the cursor busy in `MusicTrackListDisplay.qml` when the model is busy
Akin to c15aaf90.
- - - - -
5a8aa448 by Fatih Uzunoglu at 2025-06-07T14:01:24+00:00
qml: use `ProgressIndicator` in `MusicTrackListDisplay.qml`
Akin to c799a60e.
- - - - -
1 changed file:
- modules/gui/qt/medialibrary/qml/MusicTrackListDisplay.qml
Changes:
=====================================
modules/gui/qt/medialibrary/qml/MusicTrackListDisplay.qml
=====================================
@@ -21,7 +21,7 @@ import QtQml.Models
import QtQuick.Layouts
import VLC.MediaLibrary
-
+import VLC.MainInterface
import VLC.Util
import VLC.Widgets as Widgets
import VLC.Style
@@ -219,6 +219,21 @@ Widgets.TableViewExt {
section.property = ""
}
}
+
+ onLoadingChanged: {
+ if (loading) {
+ MainCtx.setCursor(root, Qt.BusyCursor)
+ visibilityTimer.start()
+ } else {
+ visibilityTimer.stop()
+ progressIndicator.visible = false
+ MainCtx.unsetCursor(root)
+ }
+ }
+
+ Component.onCompleted: {
+ loadingChanged() // in case boolean default value is `true`, currently it is not
+ }
}
MLContextMenu {
@@ -226,4 +241,25 @@ Widgets.TableViewExt {
model: rootmodel
}
+
+ Widgets.ProgressIndicator {
+ id: progressIndicator
+
+ anchors.centerIn: parent
+ z: 99
+
+ visible: false
+
+ text: ""
+
+ Timer {
+ id: visibilityTimer
+
+ interval: VLCStyle.duration_humanMoment
+
+ onTriggered: {
+ progressIndicator.visible = true
+ }
+ }
+ }
}
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/4e1cbb613f3ae267a19339362d7239fd78246736...5a8aa44824fd64d8be39221a9abb873432c2207d
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/4e1cbb613f3ae267a19339362d7239fd78246736...5a8aa44824fd64d8be39221a9abb873432c2207d
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list