QCalendarWidget: update the year label correctly on locale change
The year label in the header would show an unlocalized year number. Fix by setting it equal to the year editor's correctly localized string. Task-number: QTBUG-69038 Change-Id: I87148c607b8fb498c57bcf59bc175154c9e445d1 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
This commit is contained in:
parent
6f81dbe674
commit
b0797cfed6
@ -1946,8 +1946,8 @@ void QCalendarWidgetPrivate::updateNavigationBar()
|
||||
QString monthName = q->locale().standaloneMonthName(m_model->m_shownMonth, QLocale::LongFormat);
|
||||
|
||||
monthButton->setText(monthName);
|
||||
yearButton->setText(QString::number(m_model->m_shownYear));
|
||||
yearEdit->setValue(m_model->m_shownYear);
|
||||
yearButton->setText(yearEdit->text());
|
||||
}
|
||||
|
||||
void QCalendarWidgetPrivate::update()
|
||||
|
Loading…
Reference in New Issue
Block a user