mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-19 12:47:49 -06:00
Horizontally align the prepare menu bar
CURA-5772
This commit is contained in:
parent
1c70a62df6
commit
cd5a0a84a8
1 changed files with 28 additions and 23 deletions
|
@ -6,10 +6,9 @@ import UM 1.3 as UM
|
||||||
import Cura 1.1 as Cura
|
import Cura 1.1 as Cura
|
||||||
|
|
||||||
|
|
||||||
Row
|
Item
|
||||||
{
|
{
|
||||||
spacing: UM.Theme.getSize("default_margin").width
|
id: prepareMenu
|
||||||
|
|
||||||
// This widget doesn't show tooltips by itself. Instead it emits signals so others can do something with it.
|
// This widget doesn't show tooltips by itself. Instead it emits signals so others can do something with it.
|
||||||
signal showTooltip(Item item, point location, string text)
|
signal showTooltip(Item item, point location, string text)
|
||||||
signal hideTooltip()
|
signal hideTooltip()
|
||||||
|
@ -20,6 +19,11 @@ Row
|
||||||
name:"cura"
|
name:"cura"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Row
|
||||||
|
{
|
||||||
|
spacing: UM.Theme.getSize("default_margin").width
|
||||||
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
|
|
||||||
Button
|
Button
|
||||||
{
|
{
|
||||||
id: openFileButton
|
id: openFileButton
|
||||||
|
@ -42,7 +46,8 @@ Row
|
||||||
Cura.ProfileAndSettingComponent
|
Cura.ProfileAndSettingComponent
|
||||||
{
|
{
|
||||||
width: UM.Theme.getSize("sidebar").width
|
width: UM.Theme.getSize("sidebar").width
|
||||||
onShowTooltip: parent.showTooltip(item, location, text)
|
onShowTooltip: prepareMenu.showTooltip(item, location, text)
|
||||||
onHideTooltip: parent.hideTooltip()
|
onHideTooltip: prepareMenu.hideTooltip()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue