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
{
background: Item {
UM.RecolorImage {
background: Item
{
UM.RecolorImage
{
anchors.verticalCenter: parent.verticalCenter
anchors.horizontalCenter: parent.horizontalCenter
width: UM.Theme.getSize("standard_arrow").width
@ -180,8 +182,9 @@ Item
source: UM.Theme.getIcon("menu")
}
}
label: Label{}
label: Label {}
}
menu: SettingVisibilityPresetsMenu
{
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
{
id: scrollView