From fd73751b91f32a5b0b1b3ed8a4af6933211b84c5 Mon Sep 17 00:00:00 2001 From: Jack Ha Date: Tue, 15 May 2018 16:10:01 +0200 Subject: [PATCH] Make the ToolboxProgressButton labels actually overrideable --- .../Toolbox/resources/qml/ToolboxProgressButton.qml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/plugins/Toolbox/resources/qml/ToolboxProgressButton.qml b/plugins/Toolbox/resources/qml/ToolboxProgressButton.qml index d3aafae987..a977ef999b 100644 --- a/plugins/Toolbox/resources/qml/ToolboxProgressButton.qml +++ b/plugins/Toolbox/resources/qml/ToolboxProgressButton.qml @@ -14,9 +14,9 @@ Item property var active: false property var complete: false - property var readyLabel: "Install" - property var activeLabel: "Installing" - property var completeLabel: "Installed" + property var readyLabel: catalog.i18nc("@action:button", "Install") + property var activeLabel: catalog.i18nc("@action:button", "Cancel") + property var completeLabel: catalog.i18nc("@action:button", "Installed") 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) @@ -32,15 +32,15 @@ Item { if (complete) { - return catalog.i18nc("@action:button", "Installed") + return completeLabel } else if (active) { - return catalog.i18nc("@action:button", "Cancel") + return activeLabel } else { - return catalog.i18nc("@action:button", "Install") + return readyLabel } } onClicked: