Fix cursorShape over fields inside a HFlickable

Bug introduced in 6b907, made the cursor stay as a normal arrow when
hovering text fields/areas inside a HFlickable due to the
HKineticScrollingDisabler's width/height being incorrectly set.
This commit is contained in:
miruka 2020-08-21 04:58:03 -04:00
parent 43b14f3129
commit 8fbe59f6eb
2 changed files with 10 additions and 6 deletions

View File

@ -3,7 +3,6 @@
- refresh server list button
- server list sorting method / explain what the % number is (stability)
- spam alt+shift+a/going to room when starting app on server browser → segfault
- cursor shape in HBox/HTabbedBox pages over fields
- login with account already added → infinite spinner in room list
- verify onKeyboardAccept/Cancel things respect button enabled state

View File

@ -17,12 +17,17 @@ Flickable {
Component.onCompleted: {
kineticScrollingDisabler = Qt.createComponent(
"HKineticScrollingDisabler.qml"
).createObject(flickable, {
flickable: flickable,
width: enabled ? flickable.width : 0,
height: enabled ? flickable.height : 0,
})
).createObject(flickable, {flickable})
kineticScrollingDisabler.width = Qt.binding(() =>
kineticScrollingDisabler.enabled ? flickable.width : 0
)
kineticScrollingDisabler.height = Qt.binding(() =>
kineticScrollingDisabler.enabled ? flickable.height : 0
)
}
property var kineticScrollingDisabler
property var pr: kineticScrollingDisabler.enabled
onPrChanged: print("pr changed:", pr)
}