From 57b02753846afe8b9b36bdb7881f7a174876af75 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Thu, 20 Oct 2016 17:16:06 +0200 Subject: [PATCH] Show layer height in profile selection menu It's shown in the 'inactive' font colour, which isn't entirely semantically correct but has the behaviour we want regardless of how the theme changes in the future. Contributes to issue CURA-2723. --- resources/qml/SidebarHeader.qml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/resources/qml/SidebarHeader.qml b/resources/qml/SidebarHeader.qml index 20ee5f66cd..b8ae3933a4 100644 --- a/resources/qml/SidebarHeader.qml +++ b/resources/qml/SidebarHeader.qml @@ -285,7 +285,16 @@ Column ToolButton { id: globalProfileSelection - text: Cura.MachineManager.activeQualityName + text: { + var result = Cura.MachineManager.activeQualityName; + if (Cura.MachineManager.activeQualityLayerHeight > 0) { + result += " "; + result += " - "; + result += Cura.MachineManager.activeQualityLayerHeight + "mm"; + result += ""; + } + return result; + } enabled: !extrudersList.visible || base.currentExtruderIndex > -1 width: parent.width * 0.55 + UM.Theme.getSize("default_margin").width