From 71701f15cf9c271d9f77a2055e710fc4417cb503 Mon Sep 17 00:00:00 2001 From: Remco Burema Date: Tue, 15 Oct 2019 11:38:51 +0200 Subject: [PATCH] Remove function to reintroduce binding. Also force max width to integer value and comment why there is a plain value like 0.7 in the code. part of CURA-6862 --- .../qml/PrintSetupSelector/Custom/CustomPrintSetup.qml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/resources/qml/PrintSetupSelector/Custom/CustomPrintSetup.qml b/resources/qml/PrintSetupSelector/Custom/CustomPrintSetup.qml index cf27d6d023..b559aa711c 100644 --- a/resources/qml/PrintSetupSelector/Custom/CustomPrintSetup.qml +++ b/resources/qml/PrintSetupSelector/Custom/CustomPrintSetup.qml @@ -88,20 +88,15 @@ Item Label { id: textLabel - text: qualityName() + text: Cura.MachineManager.activeQualityDisplayNameMap["main"] font: UM.Theme.getFont("default") color: UM.Theme.getColor("text") Layout.margins: 0 - Layout.maximumWidth: parent.width * 0.7 + Layout.maximumWidth: Math.floor(parent.width * 0.7) // Always leave >= 30% for the rest of the row. height: contentHeight verticalAlignment: Text.AlignVCenter renderType: Text.NativeRendering elide: Text.ElideRight - - function qualityName() { - var resultMap = Cura.MachineManager.activeQualityDisplayNameMap - return resultMap["main"] - } } Label