diff options
| author | rating89us <45968869+rating89us@users.noreply.github.com> | 2021-06-06 21:04:04 +0200 |
|---|---|---|
| committer | rating89us <rating89us@rating89us.com> | 2021-06-06 23:21:32 +0200 |
| commit | 39d561d9f297f21a6593f59fec897f1a746b0b91 (patch) | |
| tree | 33f9070b05b2e2761ef53dad5c239e0e89809681 /components | |
| parent | 2946127ed791ef8dd6dc430b681a14cd5bd2d71e (diff) | |
| download | monzero-gui-39d561d9f297f21a6593f59fec897f1a746b0b91.tar.gz monzero-gui-39d561d9f297f21a6593f59fec897f1a746b0b91.tar.xz monzero-gui-39d561d9f297f21a6593f59fec897f1a746b0b91.zip | |
DatePicker: support mouse wheel to navigate months
Diffstat (limited to 'components')
| -rw-r--r-- | components/DatePicker.qml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/components/DatePicker.qml b/components/DatePicker.qml index 8a79b2e8..15164af5 100644 --- a/components/DatePicker.qml +++ b/components/DatePicker.qml @@ -271,6 +271,11 @@ Item { MouseArea { anchors.fill: parent + scrollGestureEnabled: false + onWheel: { + if (wheel.angleDelta.y > 0) return calendar.showPreviousMonth(); + if (wheel.angleDelta.y < 0) return calendar.showNextMonth(); + } } Rectangle { |
