Add CalendarSystem's ctor

This commit is contained in:
Giorgos Tsiapaliwkas 2012-02-14 12:29:21 +02:00
parent 461ad73f58
commit 7877980f2e
2 changed files with 10 additions and 0 deletions

View File

@ -26,6 +26,13 @@
#include <QtCore/QDateTime> #include <QtCore/QDateTime>
CalendarSystem::CalendarSystem(QObject* parent)
: QObject(parent)
{
m_calendarSystem = KCalendarSystem::create(KLocale::CalendarSystem, 0);
}
QList<Locale::CalendarSystem> CalendarSystem::calendarSystemsList() QList<Locale::CalendarSystem> CalendarSystem::calendarSystemsList()
{ {
QList<Locale::CalendarSystem> list; QList<Locale::CalendarSystem> list;

View File

@ -46,6 +46,9 @@ Q_ENUMS(WeekDayNameFormat)
public: public:
//ctor
CalendarSystem(QObject *parent = 0);
/** /**
* Format for returned year number / month number / day number as string. * Format for returned year number / month number / day number as string.
*/ */