Fix cursor shape over text fields/areas

Fix only applies if kinetic scrolling is enabled, need WheelHandler (Qt
5.14+) otherwise
This commit is contained in:
miruka 2020-06-05 01:54:42 -04:00
parent b81dea9bc2
commit cfee1b1e4b
6 changed files with 12 additions and 7 deletions

View File

@ -95,6 +95,11 @@ and this project adheres to
- Fix `KeyError` when forgetting a room
- Fix cursor shape not changing to carret when hovering text fields and areas.
This fix can only apply when the `enableKineticScrolling` setting is `true`,
until the project switches to Qt 5.15.
## 0.5.0
### Added

View File

@ -1,8 +1,5 @@
# TODO
- fix cursor over field
- keyerror when forgetting room while loading members
## Refactoring
- Rewrite account settings using `HTabbedContainer`
@ -255,6 +252,7 @@
- Added `WheelHandler`, an Event Handler for the mouse wheel, and optionally
for emulated mouse wheel events coming from a trackpad.
- Rewrite `HKineticScrollingDisabler` with it
- Added `BoundaryRule` in Qt.labs.animation: a `PropertyValueInterceptor` that
restricts the range of values a numeric property can have, applies

View File

@ -29,6 +29,7 @@ HPage {
HKineticScrollingDisabler {
flickable: flickable
anchors.fill: flickable
width: enabled ? flickable.width : 0
height: enabled ? flickable.height : 0
}
}

View File

@ -119,6 +119,7 @@ GridView {
HKineticScrollingDisabler {
id: mouseArea
anchors.fill: parent
width: enabled ? parent.width : 0
height: enabled ? parent.height : 0
}
}

View File

@ -2,7 +2,6 @@
import QtQuick 2.12
// MouseArea component to disable kinetic scrolling
MouseArea {
id: mouseArea
enabled: ! window.settings.enableKineticScrolling

View File

@ -120,6 +120,7 @@ ListView {
HKineticScrollingDisabler {
id: mouseArea
anchors.fill: parent
width: enabled ? parent.width : 0
height: enabled ? parent.height : 0
}
}