Make progressBar optional in Wizard

CURA-6435
This commit is contained in:
Lipu Fei 2019-04-05 08:25:08 +02:00
parent 76947df6c1
commit a5259ce22e
3 changed files with 4 additions and 0 deletions

View file

@ -27,6 +27,7 @@ Window
color: UM.Theme.getColor("main_background")
property var model: null // Needs to be set by whoever is using this dialog.
property alias progressBarVisible: wizardPanel.progressBarVisible
onVisibilityChanged:
{

View file

@ -25,6 +25,7 @@ Item
property var progressValue: model == null ? 0 : model.currentProgress
property string pageUrl: currentItem == null ? "" : currentItem.page_url
property alias progressBarVisible: progressBar.visible
property alias backgroundColor: panelBackground.color
signal showNextPage()
@ -44,6 +45,7 @@ Item
anchors.fill: parent
radius: UM.Theme.getSize("default_radius").width
color: UM.Theme.getColor("main_background")
UM.ProgressBar
{
id: progressBar