Remove superfluous rectangles

There's only one item in there. It makes no sense to group them by rows and that only makes the bindings more complicated.

Contributes to issue CURA-4149.
This commit is contained in:
Ghostkeeper 2017-08-14 09:38:40 +02:00
parent e514a9f474
commit 454293f926
No known key found for this signature in database
GPG Key ID: C5F96EE2BC0F7E75

View File

@ -409,19 +409,13 @@ Rectangle
anchors.leftMargin: UM.Theme.getSize("default_margin").width anchors.leftMargin: UM.Theme.getSize("default_margin").width
anchors.bottomMargin: UM.Theme.getSize("default_margin").height anchors.bottomMargin: UM.Theme.getSize("default_margin").height
Rectangle
{
id: timeSpecsRow
anchors.left: parent.left
anchors.bottom: filamentSpecsRow.top
UM.TooltipArea UM.TooltipArea
{ {
id: timeSpecPerFeatureTooltipArea id: timeSpecPerFeatureTooltipArea
width: timeSpec.width width: timeSpec.width
height: timeSpec.height height: timeSpec.height
anchors.left: parent.left anchors.left: parent.left
anchors.bottom: parent.bottom anchors.bottom: lengthSpec.top
text: { text: {
var order = ["inset_0", "inset_x", "skin", "infill", "support_infill", "support_interface", "support", "travel", "retract", "none"]; var order = ["inset_0", "inset_x", "skin", "infill", "support_infill", "support_interface", "support", "travel", "retract", "none"];
@ -460,15 +454,6 @@ Rectangle
text: (!base.printDuration || !base.printDuration.valid) ? catalog.i18nc("@label", "00h 00min") : base.printDuration.getDisplayString(UM.DurationFormat.Short) text: (!base.printDuration || !base.printDuration.valid) ? catalog.i18nc("@label", "00h 00min") : base.printDuration.getDisplayString(UM.DurationFormat.Short)
} }
} }
}
Rectangle
{
id: filamentSpecsRow
anchors.left: parent.left
anchors.bottom: parent.bottom
width: childrenRect.width
height: childrenRect.height
Text Text
{ {
id: lengthSpec id: lengthSpec
@ -516,7 +501,6 @@ Rectangle
} }
} }
} }
}
// SaveButton and MonitorButton are actually the bottom footer panels. // SaveButton and MonitorButton are actually the bottom footer panels.
// "!monitoringPrint" currently means "show-settings-mode" // "!monitoringPrint" currently means "show-settings-mode"