Verified Commit 740bf91b authored by Fushan Wen's avatar Fushan Wen 💬
Browse files

alternatecalendar: Add support for QCalendar provider in plugin base

Supported calendar systems are from QCalendar.

CCBUG: 429892
parent 37ff5f67
......@@ -38,8 +38,20 @@ void AlternateCalendarPluginPrivate::init()
{
// Load/Reload the calendar provider
switch (m_calendarSystem) {
#ifndef QT_BOOTSTRAPPED
case CalendarSystem::Julian:
case CalendarSystem::Milankovic:
#endif
#if QT_CONFIG(jalalicalendar)
case CalendarSystem::Jalali:
#endif
#if QT_CONFIG(islamiccivilcalendar)
case CalendarSystem::IslamicCivil:
#endif
m_calendarProvider.reset(new QtCalendarProvider(q, m_calendarSystem));
break;
default:
m_calendarProvider.reset(new AbstractCalendarProvider(p, m_calendarSystem));
m_calendarProvider.reset(new AbstractCalendarProvider(q, m_calendarSystem));
}
}
......
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