mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-14 18:27:51 -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
|
||||
{
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue