summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleix Pol <aleixpol@kde.org>2015-10-05 11:21:40 (GMT)
committerAleix Pol <aleixpol@kde.org>2015-10-05 11:21:40 (GMT)
commit49203a097853c7775699155349fb21043a18a1fd (patch)
treec8850b0157806f014a9d9be18f615ec8e8187511
parenta6d29b80bb9b4c76a812e93797917ac7b57b3b5d (diff)
Fix upgrade progress bar
-rw-r--r--discover/qml/PresentUpdatesPage.qml11
1 files changed, 10 insertions, 1 deletions
diff --git a/discover/qml/PresentUpdatesPage.qml b/discover/qml/PresentUpdatesPage.qml
index ee9fd2e..1404ce8 100644
--- a/discover/qml/PresentUpdatesPage.qml
+++ b/discover/qml/PresentUpdatesPage.qml
@@ -66,8 +66,17 @@ ScrollView
text: resourcesUpdatesModel.remainingTime
}
ProgressBar {
+ id: pbar
anchors.centerIn: parent
- value: resourcesUpdatesModel.progress
+ minimumValue: 0
+ maximumValue: 100
+ }
+
+ // Workaround for bug in Qt
+ // https://bugreports.qt.io/browse/QTBUG-48598
+ Connections {
+ target: resourcesUpdatesModel
+ onProgressChanged: pbar.value = resourcesUpdatesModel.progress
}
}
}