mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 03:25:56 +08:00
Make progressBar optional in Wizard
CURA-6435
This commit is contained in:
parent
76947df6c1
commit
a5259ce22e
@ -779,6 +779,7 @@ UM.MainWindow
|
|||||||
id: addMachineDialog
|
id: addMachineDialog
|
||||||
title: catalog.i18nc("@title:window", "Add Printer")
|
title: catalog.i18nc("@title:window", "Add Printer")
|
||||||
model: CuraApplication.getAddPrinterPagesModel()
|
model: CuraApplication.getAddPrinterPagesModel()
|
||||||
|
progressBarVisible: false
|
||||||
}
|
}
|
||||||
|
|
||||||
Connections
|
Connections
|
||||||
|
@ -27,6 +27,7 @@ Window
|
|||||||
color: UM.Theme.getColor("main_background")
|
color: UM.Theme.getColor("main_background")
|
||||||
|
|
||||||
property var model: null // Needs to be set by whoever is using this dialog.
|
property var model: null // Needs to be set by whoever is using this dialog.
|
||||||
|
property alias progressBarVisible: wizardPanel.progressBarVisible
|
||||||
|
|
||||||
onVisibilityChanged:
|
onVisibilityChanged:
|
||||||
{
|
{
|
||||||
|
@ -25,6 +25,7 @@ Item
|
|||||||
property var progressValue: model == null ? 0 : model.currentProgress
|
property var progressValue: model == null ? 0 : model.currentProgress
|
||||||
property string pageUrl: currentItem == null ? "" : currentItem.page_url
|
property string pageUrl: currentItem == null ? "" : currentItem.page_url
|
||||||
|
|
||||||
|
property alias progressBarVisible: progressBar.visible
|
||||||
property alias backgroundColor: panelBackground.color
|
property alias backgroundColor: panelBackground.color
|
||||||
|
|
||||||
signal showNextPage()
|
signal showNextPage()
|
||||||
@ -44,6 +45,7 @@ Item
|
|||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
radius: UM.Theme.getSize("default_radius").width
|
radius: UM.Theme.getSize("default_radius").width
|
||||||
color: UM.Theme.getColor("main_background")
|
color: UM.Theme.getColor("main_background")
|
||||||
|
|
||||||
UM.ProgressBar
|
UM.ProgressBar
|
||||||
{
|
{
|
||||||
id: progressBar
|
id: progressBar
|
||||||
|
Loading…
x
Reference in New Issue
Block a user