Add a mouse area to gather the scroll events in the settings panel

Contributes to CURA-5941.
This commit is contained in:
Diego Prado Gesto 2018-12-10 10:36:55 +01:00
parent 9e7a52e28b
commit 8cfb9350bc

View file

@ -168,8 +168,10 @@ Item
style: ButtonStyle style: ButtonStyle
{ {
background: Item { background: Item
UM.RecolorImage { {
UM.RecolorImage
{
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
width: UM.Theme.getSize("standard_arrow").width width: UM.Theme.getSize("standard_arrow").width
@ -182,6 +184,7 @@ Item
} }
label: Label {} label: Label {}
} }
menu: SettingVisibilityPresetsMenu menu: SettingVisibilityPresetsMenu
{ {
onShowAllSettings: onShowAllSettings:
@ -192,6 +195,14 @@ Item
} }
} }
// Mouse area that gathers the scroll events to not propagate it to the main view.
MouseArea
{
anchors.fill: scrollView
acceptedButtons: Qt.AllButtons
onWheel: wheel.accepted = true
}
ScrollView ScrollView
{ {
id: scrollView id: scrollView