diff options
| author | Aleix Pol <aleixpol@kde.org> | 2015-10-05 11:21:40 (GMT) |
|---|---|---|
| committer | Aleix Pol <aleixpol@kde.org> | 2015-10-05 11:21:40 (GMT) |
| commit | 49203a097853c7775699155349fb21043a18a1fd (patch) | |
| tree | c8850b0157806f014a9d9be18f615ec8e8187511 | |
| parent | a6d29b80bb9b4c76a812e93797917ac7b57b3b5d (diff) | |
Fix upgrade progress bar
| -rw-r--r-- | discover/qml/PresentUpdatesPage.qml | 11 |
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 } } } |
