mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-15 02:37:49 -06:00
Add a mouse area to gather the scroll events in the settings panel
Contributes to CURA-5941.
This commit is contained in:
parent
9e7a52e28b
commit
8cfb9350bc
1 changed files with 14 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue