Revision 1193650

Go back to digest for 7th November 2010

Features in KDE Base

John Layt committed changes in /trunk/KDE/kdelibs/kdecore:

Add KLocalizedDate to make localization of dates fun.

The new KlocalizedDate class is a convenience wrapper around KCalendarSystem
and QDate to make it easy for coders to localize dates. The api is very
consistent with QDate making most uses a simple changing of class name.

See review

In making the new api as simple and easy to use, a number of new features were
added to KLocale and KCalendarSystem, mostly convenience enums, but also Week
Numbering system (currently only ISO Week supported).

The apidox is not yet complete, but I will finish this after hard freeze kicks

File Changes

Added 2 files
  • /trunk/KDE/kdelibs/kdecore/date
  •   /klocalizeddate.cpp
  •   /klocalizeddate.h
Modified 28 files
  • /trunk/KDE/kdelibs/kdecore
  •   /CMakeLists.txt
  •   /date/kcalendarera.cpp
  •   /date/kcalendarera_p.h
  •   /date/kcalendarsystem.cpp
  •   /date/kcalendarsystem.h
  •   /date/kcalendarsystemcoptic.cpp
  •   /date/kcalendarsystemcopticprivate_p.h
  •   /date/kcalendarsystemethiopian.cpp
  •   /date/kcalendarsystemgregorian.cpp
  •   /date/kcalendarsystemgregorianproleptic.cpp
  •   /date/kcalendarsystemgregorianprolepticprivate_p.h
  •   /date/kcalendarsystemhebrew.cpp
  •   /date/kcalendarsystemhijri.cpp
  •   /date/kcalendarsystemindiannational.cpp
  •   /date/kcalendarsystemjalali.cpp
  •   /date/kcalendarsystemjapanese.cpp
  •   /date/kcalendarsystemjulian.cpp
  •   /date/kcalendarsystemminguo.cpp
  •   /date/kcalendarsystemprivate_p.h
  •   /date/kcalendarsystemthai.cpp
  •   /localization/klocale.cpp
  •   /localization/klocale.h
  •   /localization/klocale_kde.cpp
  •   /localization/klocale_p.h
  •   /tests/kcalendartest.cpp
  •   /tests/kcalendartest.h
  •   /tests/klocaletest.cpp
  •   /tests/klocaletest.h
30 files changed in total