diff options
author | Jaime van Kessel <nallath@gmail.com> | 2019-02-07 16:13:00 +0300 |
---|---|---|
committer | Jaime van Kessel <nallath@gmail.com> | 2019-02-07 16:13:00 +0300 |
commit | c15089cd59c2f97145f49ac804cb7c7911a0f946 (patch) | |
tree | 96add7ace9a062441fe4ea559980759d4ff9cf48 /resources/qml/Menus/ConfigurationMenu/CustomConfiguration.qml | |
parent | 575f323ea1cbe93e0d7cbc0d03f1221aaf447535 (diff) |
Some minor cleanup of the QML
CURA-5916
Diffstat (limited to 'resources/qml/Menus/ConfigurationMenu/CustomConfiguration.qml')
-rw-r--r-- | resources/qml/Menus/ConfigurationMenu/CustomConfiguration.qml | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/resources/qml/Menus/ConfigurationMenu/CustomConfiguration.qml b/resources/qml/Menus/ConfigurationMenu/CustomConfiguration.qml index 663e2497ed..fc4272dc93 100644 --- a/resources/qml/Menus/ConfigurationMenu/CustomConfiguration.qml +++ b/resources/qml/Menus/ConfigurationMenu/CustomConfiguration.qml @@ -185,7 +185,7 @@ Item Row { - height: UM.Theme.getSize("print_setup_item").height + height: visible ? childrenRect.height : 0 visible: extrudersModel.count > 1 // If there is only one extruder, there is no point to enable/disable that. Label @@ -222,7 +222,7 @@ Item Row { - height: UM.Theme.getSize("print_setup_big_item").height + height: visible ? childrenRect.height: 0 visible: Cura.MachineManager.hasMaterials Label @@ -246,8 +246,8 @@ Item text: Cura.MachineManager.activeStack != null ? Cura.MachineManager.activeStack.material.name : "" tooltip: text - height: UM.Theme.getSize("print_setup_big_item").height width: selectors.controlWidth + height: UM.Theme.getSize("print_setup_big_item").height style: UM.Theme.styles.print_setup_header_button activeFocusOnPress: true @@ -260,7 +260,7 @@ Item Row { - height: UM.Theme.getSize("print_setup_big_item").height + height: visible ? childrenRect.height: 0 visible: Cura.MachineManager.hasVariants Label @@ -279,7 +279,6 @@ Item id: variantSelection text: Cura.MachineManager.activeVariantName tooltip: Cura.MachineManager.activeVariantName - height: UM.Theme.getSize("print_setup_big_item").height width: selectors.controlWidth style: UM.Theme.styles.print_setup_header_button @@ -292,7 +291,7 @@ Item Row { id: warnings - height: UM.Theme.getSize("print_setup_big_item").height + height: visible ? childrenRect.height : 0 visible: buildplateCompatibilityError || buildplateCompatibilityWarning property bool buildplateCompatibilityError: !Cura.MachineManager.variantBuildplateCompatible && !Cura.MachineManager.variantBuildplateUsable |