diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2021-06-10 11:01:52 -0500 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2021-06-10 11:01:52 -0500 |
| commit | e3a17a66ff5c20b3c39d40265bee3dfd7f7a46a9 (patch) | |
| tree | f922e0ddfe6129e3ef533a2744e57435c1789636 | |
| parent | 4f385b9a0468d7843698d53addb77ded1209a4f6 (diff) | |
| parent | 9ab104b38a1aba71d2b35c6eb7a51c476e4abec2 (diff) | |
| download | monzero-gui-e3a17a66ff5c20b3c39d40265bee3dfd7f7a46a9.tar.gz monzero-gui-e3a17a66ff5c20b3c39d40265bee3dfd7f7a46a9.tar.xz monzero-gui-e3a17a66ff5c20b3c39d40265bee3dfd7f7a46a9.zip | |
Merge pull request #3534
9ab104b DatePicker: display currently selected month when opening calendar (rating89us)
| -rw-r--r-- | components/DatePicker.qml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/components/DatePicker.qml b/components/DatePicker.qml index 27429bf4..912b1c49 100644 --- a/components/DatePicker.qml +++ b/components/DatePicker.qml @@ -250,6 +250,10 @@ Item { id: popup padding: 0 closePolicy: QtQuickControls2.Popup.CloseOnEscape | QtQuickControls2.Popup.CloseOnPressOutsideParent + onOpened: { + calendar.visibleMonth = currentDate.getMonth(); + calendar.visibleYear = currentDate.getFullYear(); + } Rectangle { id: calendarRect |
