From 168246d594b1fdc2e4137622e89b27ba70c7d582 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Fri, 17 Jun 2016 11:02:22 +0200 Subject: [PATCH] Added progress percentage label CURA-1036 --- resources/qml/MonitorButton.qml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/resources/qml/MonitorButton.qml b/resources/qml/MonitorButton.qml index 16ea5687e0..335de0b323 100644 --- a/resources/qml/MonitorButton.qml +++ b/resources/qml/MonitorButton.qml @@ -53,6 +53,18 @@ Rectangle text: statusText; } + Label + { + id: percentageLabel + anchors.top: parent.top + anchors.right: progressBar.right + //anchors.rightMargin: UM.Theme.getSize("default_margin").width + + color: "green" + font: UM.Theme.getFont("large") + text: Math.round(progress * 100) + "%" ; + } + Rectangle { id: progressBar