diff --git a/declarativeimports/locale/calendarsystem.cpp b/declarativeimports/locale/calendarsystem.cpp index 7921b35c0..00a6dd72b 100644 --- a/declarativeimports/locale/calendarsystem.cpp +++ b/declarativeimports/locale/calendarsystem.cpp @@ -26,6 +26,13 @@ #include +CalendarSystem::CalendarSystem(QObject* parent) + : QObject(parent) +{ + m_calendarSystem = KCalendarSystem::create(KLocale::CalendarSystem, 0); +} + + QList CalendarSystem::calendarSystemsList() { QList list; diff --git a/declarativeimports/locale/calendarsystem.h b/declarativeimports/locale/calendarsystem.h index 167790e19..ecb83360c 100644 --- a/declarativeimports/locale/calendarsystem.h +++ b/declarativeimports/locale/calendarsystem.h @@ -46,6 +46,9 @@ Q_ENUMS(WeekDayNameFormat) public: + //ctor + CalendarSystem(QObject *parent = 0); + /** * Format for returned year number / month number / day number as string. */