DatePicker: display currently selected month when opening calendar

This commit is contained in:
rating89us 2021-06-06 21:55:34 +02:00 committed by GitHub
parent 2946127ed7
commit 9ab104b38a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -252,6 +252,10 @@ Item {
id: popup id: popup
padding: 0 padding: 0
closePolicy: QtQuickControls2.Popup.CloseOnEscape | QtQuickControls2.Popup.CloseOnPressOutsideParent closePolicy: QtQuickControls2.Popup.CloseOnEscape | QtQuickControls2.Popup.CloseOnPressOutsideParent
onOpened: {
calendar.visibleMonth = currentDate.getMonth();
calendar.visibleYear = currentDate.getFullYear();
}
Rectangle { Rectangle {
id: calendarRect id: calendarRect