|
@@ -25,7 +25,6 @@ Item
|
|
|
top: parent.top
|
|
|
left: parent.left
|
|
|
right: settingVisibilityMenu.left
|
|
|
- rightMargin: UM.Theme.getSize("default_margin").width
|
|
|
}
|
|
|
height: UM.Theme.getSize("print_setup_big_item").height
|
|
|
|
|
@@ -131,8 +130,6 @@ Item
|
|
|
SettingVisibilityPresetsMenu
|
|
|
{
|
|
|
id: settingVisibilityPresetsMenu
|
|
|
- x: settingVisibilityMenu.x
|
|
|
- y: settingVisibilityMenu.y
|
|
|
onCollapseAllCategories:
|
|
|
{
|
|
|
settingsSearchTimer.stop()
|
|
@@ -142,32 +139,32 @@ Item
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- UM.SimpleButton
|
|
|
+ UM.BurgerButton
|
|
|
{
|
|
|
id: settingVisibilityMenu
|
|
|
|
|
|
anchors
|
|
|
{
|
|
|
- top: filterContainer.top
|
|
|
- bottom: filterContainer.bottom
|
|
|
+ verticalCenter: filterContainer.verticalCenter
|
|
|
right: parent.right
|
|
|
- rightMargin: UM.Theme.getSize("wide_margin").width
|
|
|
}
|
|
|
- width: UM.Theme.getSize("medium_button_icon").width
|
|
|
- height: UM.Theme.getSize("medium_button_icon").height
|
|
|
- iconSource: UM.Theme.getIcon("Hamburger")
|
|
|
- hoverColor: UM.Theme.getColor("small_button_text_hover")
|
|
|
- color: UM.Theme.getColor("small_button_text")
|
|
|
|
|
|
onClicked:
|
|
|
{
|
|
|
settingVisibilityPresetsMenu.popup(
|
|
|
- settingVisibilityMenu,
|
|
|
+ popupContainer,
|
|
|
-settingVisibilityPresetsMenu.width + UM.Theme.getSize("default_margin").width,
|
|
|
settingVisibilityMenu.height
|
|
|
)
|
|
|
}
|
|
|
}
|
|
|
+ Item
|
|
|
+ {
|
|
|
+ // Work around to prevent the buttom from being rescaled if a popup is attached
|
|
|
+ id: popupContainer
|
|
|
+ anchors.bottom: settingVisibilityMenu.bottom
|
|
|
+ anchors.right: settingVisibilityMenu.right
|
|
|
+ }
|
|
|
|
|
|
// Mouse area that gathers the scroll events to not propagate it to the main view.
|
|
|
MouseArea
|