diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2021-06-10 11:01:19 -0500 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2021-06-10 11:01:19 -0500 |
| commit | 4f385b9a0468d7843698d53addb77ded1209a4f6 (patch) | |
| tree | fce1ad21e1085749adddc05bfb69bb81f3128abf | |
| parent | 2c54787644f261e475848334788e68265c7f2d9e (diff) | |
| parent | 39d561d9f297f21a6593f59fec897f1a746b0b91 (diff) | |
| download | monzero-gui-4f385b9a0468d7843698d53addb77ded1209a4f6.tar.gz monzero-gui-4f385b9a0468d7843698d53addb77ded1209a4f6.tar.xz monzero-gui-4f385b9a0468d7843698d53addb77ded1209a4f6.zip | |
Merge pull request #3533
39d561d DatePicker: support mouse wheel to navigate months (rating89us)
| -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 8dd7347c..27429bf4 100644 --- a/components/DatePicker.qml +++ b/components/DatePicker.qml @@ -269,6 +269,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 { |
