Proposal: consistency for dateFormat()

André Wöbbeking Woebbeking at onlinehome.de
Sun Jan 22 23:20:39 GMT 2006


On Sunday 22 January 2006 22:29, David Jarvie wrote:
> On Friday 20 January 2006 15:37, Jaros³aw Staniek wrote:
> > Ah, OK, I can propose an enum for both booleans.
> > But then we still couldn't have the default option in if we do not
> > want to surprise developers, could we?
> >
> > KLocale::formatDateTime(const QDateTime &pDateTime, int options =
> > DateTimeFormat::ShortDateTimeFormat),
>
> DateTimeFormat::Short would be better. There's no point in repeating
> the "DateTimeFormat" bit.

There is, have a look at Qt or

  formatDateTime(foo, Short) 

versus 

  formatDateTime(foo, ShortDateTimeFormat)

OK, ShortDateTimeFormat is really long, maybe we can meet in the 
middle :) What about ShortFormat?


Cheers,
André




More information about the kde-core-devel mailing list