Move OpenFile button to be instantiated left so it's tooltip doesn't get messed up

CURA-5785
This commit is contained in:
Jaime van Kessel 2018-11-14 12:57:57 +01:00
parent 878b743232
commit fcfe95c7d0

View file

@ -26,27 +26,6 @@ Item
width: openFileButtonBackground.width + itemRowBackground.width
height: parent.height
Rectangle
{
id: openFileButtonBackground
height: UM.Theme.getSize("stage_menu").height
width: UM.Theme.getSize("stage_menu").height
radius: UM.Theme.getSize("default_radius").width
color: UM.Theme.getColor("toolbar_background")
Button
{
id: openFileButton
text: catalog.i18nc("@action:button", "Open File")
iconSource: UM.Theme.getIcon("load")
style: UM.Theme.styles.toolbar_button
tooltip: ""
action: Cura.Actions.open
anchors.centerIn: parent
}
}
Rectangle
{
id: itemRowBackground
@ -73,7 +52,7 @@ Item
Cura.MachineSelector
{
id: machineSelection
z: openFileButton.z - 1
z: openFileButtonBackground.z - 1
Layout.minimumWidth: 240
Layout.maximumWidth: 240
@ -118,5 +97,25 @@ Item
}
}
}
Rectangle
{
id: openFileButtonBackground
height: UM.Theme.getSize("stage_menu").height
width: UM.Theme.getSize("stage_menu").height
radius: UM.Theme.getSize("default_radius").width
color: UM.Theme.getColor("toolbar_background")
Button
{
id: openFileButton
text: catalog.i18nc("@action:button", "Open File")
iconSource: UM.Theme.getIcon("load")
style: UM.Theme.styles.toolbar_button
tooltip: ""
action: Cura.Actions.open
anchors.centerIn: parent
}
}
}
}