mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-10 16:27:51 -06:00
Make the ToolboxProgressButton labels actually overrideable
This commit is contained in:
parent
bb94ad904a
commit
fd73751b91
1 changed files with 6 additions and 6 deletions
|
@ -14,9 +14,9 @@ Item
|
||||||
property var active: false
|
property var active: false
|
||||||
property var complete: false
|
property var complete: false
|
||||||
|
|
||||||
property var readyLabel: "Install"
|
property var readyLabel: catalog.i18nc("@action:button", "Install")
|
||||||
property var activeLabel: "Installing"
|
property var activeLabel: catalog.i18nc("@action:button", "Cancel")
|
||||||
property var completeLabel: "Installed"
|
property var completeLabel: catalog.i18nc("@action:button", "Installed")
|
||||||
|
|
||||||
property var readyAction: null // Action when button is ready and clicked (likely install)
|
property var readyAction: null // Action when button is ready and clicked (likely install)
|
||||||
property var activeAction: null // Action when button is active and clicked (likely cancel)
|
property var activeAction: null // Action when button is active and clicked (likely cancel)
|
||||||
|
@ -32,15 +32,15 @@ Item
|
||||||
{
|
{
|
||||||
if (complete)
|
if (complete)
|
||||||
{
|
{
|
||||||
return catalog.i18nc("@action:button", "Installed")
|
return completeLabel
|
||||||
}
|
}
|
||||||
else if (active)
|
else if (active)
|
||||||
{
|
{
|
||||||
return catalog.i18nc("@action:button", "Cancel")
|
return activeLabel
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return catalog.i18nc("@action:button", "Install")
|
return readyLabel
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
onClicked:
|
onClicked:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue