[vlc-devel] [PATCH 02/11] qml: only load the ScanProgressBar when the medialib is active
Pierre Lamot
pierre at videolabs.io
Fri Oct 9 12:07:32 CEST 2020
---
modules/gui/qt/medialibrary/qml/MainDisplay.qml | 6 +++++-
modules/gui/qt/widgets/qml/ScanProgressBar.qml | 2 --
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/modules/gui/qt/medialibrary/qml/MainDisplay.qml b/modules/gui/qt/medialibrary/qml/MainDisplay.qml
index 8bdd158113..1dcaf1a9f0 100644
--- a/modules/gui/qt/medialibrary/qml/MainDisplay.qml
+++ b/modules/gui/qt/medialibrary/qml/MainDisplay.qml
@@ -200,7 +200,7 @@ Widgets.NavigableFocusScope {
leftMargin: VLCStyle.applicationHorizontalMargin
}
- Widgets.ScanProgressBar {
+ Loader {
z: 1
anchors {
left: parent.left
@@ -208,7 +208,11 @@ Widgets.NavigableFocusScope {
bottom: parent.bottom
rightMargin: VLCStyle.margin_small
leftMargin: VLCStyle.margin_small
+ topMargin: VLCStyle.dp(10, VLCStyle.scale)
+ bottomMargin: VLCStyle.dp(10, VLCStyle.scale)
}
+ active: !!medialib
+ source: "qrc:///widgets/ScanProgressBar.qml"
}
}
diff --git a/modules/gui/qt/widgets/qml/ScanProgressBar.qml b/modules/gui/qt/widgets/qml/ScanProgressBar.qml
index 977a58d4cd..26a7fa9ead 100644
--- a/modules/gui/qt/widgets/qml/ScanProgressBar.qml
+++ b/modules/gui/qt/widgets/qml/ScanProgressBar.qml
@@ -28,8 +28,6 @@ T.ProgressBar {
from: 0
to: 100
height: progressText_id.height
- anchors.topMargin: 10
- anchors.bottomMargin: 10
value: medialib.parsingProgress
indeterminate: medialib.discoveryPending
--
2.25.1
More information about the vlc-devel
mailing list