Commit d3f05241 authored by Fushan Wen's avatar Fushan Wen
Browse files

alternatecalendar: always use day name in full label

So month name and day name will not be the same in full label.


(cherry picked from commit 2d7d7199)
parent 64fff465
Pipeline #277648 passed with stage
in 2 minutes and 28 seconds
......@@ -46,8 +46,9 @@ CalendarEvents::CalendarEventsPlugin::SubLabel ChineseCalendarProviderPrivate::s
sublabel.yearLabel = yearDisplayName();
sublabel.monthLabel = monthDisplayName();
sublabel.dayLabel = day() == 1 ? monthDisplayName() : dayDisplayName();
sublabel.label = QStringLiteral("%1%2%3").arg(sublabel.yearLabel, sublabel.monthLabel, sublabel.dayLabel);
const QString dayName = dayDisplayName();
sublabel.dayLabel = day() == 1 ? monthDisplayName() : dayName;
sublabel.label = QStringLiteral("%1%2%3").arg(sublabel.yearLabel, sublabel.monthLabel, dayName);
sublabel.priority = CalendarEvents::CalendarEventsPlugin::SubLabelPriority::Low;
return sublabel;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment