From 27ff55d75b6ee2cfce95e1b9d5adb4dc49f0bdbb Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Mon, 6 Feb 2017 15:09:18 +0100 Subject: [PATCH] Add binding to current maximum bed temperature Instead of the MAXTEMP placeholder. Contributes to issue CURA-3161. --- resources/qml/PrintMonitor.qml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/resources/qml/PrintMonitor.qml b/resources/qml/PrintMonitor.qml index 56f16ed7c2..b61d56feec 100644 --- a/resources/qml/PrintMonitor.qml +++ b/resources/qml/PrintMonitor.qml @@ -209,7 +209,7 @@ Column } Label //Maximum temperature indication. { - text: "MAXTEMP" //TODO: Placeholder! + text: bedTemperature.properties.maximum_value color: UM.Theme.getColor("setting_unit") font: UM.Theme.getFont("default") anchors.right: parent.right @@ -264,6 +264,15 @@ Column } } + UM.SettingPropertyProvider + { + id: bedTemperature + containerStackId: Cura.MachineManager.activeMachineId + key: "material_bed_temperature" + watchedProperties: ["value", "minimum_value", "maximum_value", "minimum_value_warning", "maximum_value_warning"] + storeIndex: 0 + } + Loader { sourceComponent: monitorSection