Okay so I guess this IS a bug.
I fixed it by adding Q_FLAGS(TimeFormatOptions) in
kde-runtime/plasma/declarativeimports/locale/locale_p.h
and rebuilding. The QML code now works as expected.
I file a review request for the same.
--
Anant Kamath
On 11 April 2013 15:53, Anant Kamath wrote:
> So
Some functions in the QML Locale bindings (in KDE 4.10.1) seem to be
ignoring some flags:
For example->
This QML code:
-
Locale {
id: locale
}
PlasmaComponents.Label {
text: locale.formatLocaleTime( "11:12:13", Locale.TimeWithoutAmPm
)
}
--