Merge pull request #3534

9ab104b DatePicker: display currently selected month when opening calendar (rating89us)
This commit is contained in:
luigi1111 2021-06-10 11:01:52 -05:00
commit e3a17a66ff
No known key found for this signature in database
GPG key ID: F4ACA0183641E010

View file

@ -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