Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime van Kessel <nallath@gmail.com>2018-11-14 14:57:57 +0300
committerJaime van Kessel <nallath@gmail.com>2018-11-14 14:57:57 +0300
commitfcfe95c7d0a7217bd5793ee5e5148b835bae29c4 (patch)
tree3c18d2a7858e6345cec7cb0a7cd317deee5a3951 /plugins/PrepareStage/PrepareMenu.qml
parent878b7432327e92f2081f153d28063c42e6905c0c (diff)
Move OpenFile button to be instantiated left so it's tooltip doesn't get messed up
CURA-5785
Diffstat (limited to 'plugins/PrepareStage/PrepareMenu.qml')
-rw-r--r--plugins/PrepareStage/PrepareMenu.qml43
1 files changed, 21 insertions, 22 deletions
diff --git a/plugins/PrepareStage/PrepareMenu.qml b/plugins/PrepareStage/PrepareMenu.qml
index 3c7235a26f..78f9ced1e7 100644
--- a/plugins/PrepareStage/PrepareMenu.qml
+++ b/plugins/PrepareStage/PrepareMenu.qml
@@ -28,27 +28,6 @@ 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
- }
- }
-
-
- Rectangle
- {
id: itemRowBackground
radius: UM.Theme.getSize("default_radius").width
@@ -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
+ }
+ }
}
} \ No newline at end of file