Proposal: consistency for dateFormat()

David Jarvie lists at astrojar.org.uk
Sun Jan 22 21:29:31 GMT 2006


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.

-- 
David Jarvie.
KAlarm author and maintainer.
http://www.astrojar.org.uk/linux/kalarm.html




More information about the kde-core-devel mailing list