mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00

interestingly QLocale is not used for many things but that is about to change, Katie uses it a lot internally (e.g. for QDateTime formatting and such) so instead of bolting a calendar system on top of KLocale perhaps a QLocale wrapped around in KLocale will fit the general idea of using QLocale in widgets when necessary (as does QCalendarWidget). that however means no way to specify a calendar system (in general, other than changing the widgets locale itself) but the QDateTime and related classes are tied to gregorian calendar already - the system time itself carries no information about the calendar and any conversions from one calendar to another are basically made up stuff (there is the time zone thing ofcourse but that is not a calendar) another interesting thing to note is that KLocale was written such that it is read-write - changing the date formats for example is possible because there are public KLocale methods for that. Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
1 line
32 B
Text
1 line
32 B
Text
#include "../kcalendarwidget.h"
|