From a66275ce73c0e0e1f8caf37c3c4f3d2a266dfe34 Mon Sep 17 00:00:00 2001 From: casper Date: Wed, 26 Jan 2022 12:01:30 +0100 Subject: [PATCH] Fix PrintSetupHeaderButton displaying text twice CURA-8684 --- resources/qml/PrintSetupHeaderButton.qml | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/resources/qml/PrintSetupHeaderButton.qml b/resources/qml/PrintSetupHeaderButton.qml index 8dc99ea38f..8a4b50ea15 100644 --- a/resources/qml/PrintSetupHeaderButton.qml +++ b/resources/qml/PrintSetupHeaderButton.qml @@ -85,16 +85,17 @@ ToolButton color: base.enabled ? UM.Theme.getColor("setting_control_button") : UM.Theme.getColor("setting_category_disabled_text") source: UM.Theme.getIcon("ChevronSingleDown") } - UM.Label - { - id: printSetupComboBoxLabel - text: base.text - elide: Text.ElideRight; - anchors.left: parent.left; - anchors.leftMargin: UM.Theme.getSize("setting_unit_margin").width - anchors.right: downArrow.lef - anchors.rightMargin: base.rightMargin - anchors.verticalCenter: parent.verticalCenter - } + } + + contentItem: UM.Label + { + id: printSetupComboBoxLabel + text: base.text + elide: Text.ElideRight; + anchors.left: parent.left; + anchors.leftMargin: UM.Theme.getSize("setting_unit_margin").width + anchors.right: downArrow.lef + anchors.rightMargin: base.rightMargin + anchors.verticalCenter: parent.verticalCenter } }