mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 23:46:22 -06:00
Added download progress bar to plugin browser
CURA-3856
This commit is contained in:
parent
e6a3577e9d
commit
d815c2afcf
2 changed files with 34 additions and 9 deletions
|
@ -13,7 +13,8 @@ UM.Dialog
|
|||
height: 150
|
||||
ScrollView
|
||||
{
|
||||
anchors.fill: parent
|
||||
width: parent.width
|
||||
height: parent.height - progressbar.height - UM.Theme.getSize("default_margin").height
|
||||
frameVisible: true
|
||||
ListView
|
||||
{
|
||||
|
@ -24,6 +25,17 @@ UM.Dialog
|
|||
delegate: pluginDelegate
|
||||
}
|
||||
}
|
||||
ProgressBar
|
||||
{
|
||||
id: progressbar
|
||||
anchors.bottom: parent.bottom
|
||||
style: UM.Theme.styles.progressbar
|
||||
minimumValue: 0;
|
||||
maximumValue: 100
|
||||
width: parent.width
|
||||
height: 20
|
||||
value: manager.downloadProgress
|
||||
}
|
||||
Item
|
||||
{
|
||||
SystemPalette { id: palette }
|
||||
|
@ -37,23 +49,25 @@ UM.Dialog
|
|||
color: index % 2 ? palette.base : palette.alternateBase
|
||||
Row
|
||||
{
|
||||
width: parent.width
|
||||
width: childrenRect.width
|
||||
height: childrenRect.height;
|
||||
anchors.left: parent.left
|
||||
anchors.leftMargin: UM.Theme.getSize("default_margin").width
|
||||
Label
|
||||
{
|
||||
|
||||
text: model.name
|
||||
width: contentWidth
|
||||
}
|
||||
Button
|
||||
{
|
||||
text: "Download"
|
||||
onClicked: manager.downloadAndInstallPlugin(model.file_location)
|
||||
}
|
||||
|
||||
}
|
||||
Button
|
||||
{
|
||||
text: "Download"
|
||||
onClicked: manager.downloadAndInstallPlugin(model.file_location)
|
||||
anchors.right: parent.right
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue