Widget for entering times

David Jarvie djarvie at kde.org
Wed Jul 15 09:48:56 BST 2009


On Tue, July 14, 2009 11:20 pm, Michael Leupold wrote:
>
> I'm in process of fixing up KPIM::KTimeEdit which is the widget used for
> time entry in several pim applications (looks like a combobox which pops
> up
> a list of times to choose from when clicked). KTimeEdit comes with a
> QValidator that needs some love but in order to fix it I'd like some
> input.
>
> Currently the only KDE widget I could find for entering times is part of
> KDateTimeWidget. It internally uses QTimeEdit and is locale-unaware. Now I
> was wondering if users expect such a widget to be aware of their locale.
> So,
> all you people who are not using the default %H:%M 24h format, how do you
> expect to enter times? Write "5:30pm", write "5:30" and choose pm in a
> combobox or do you consider it more convenient to just type "17:30"?

KAlarm has a different time entry widget (kdepim/kalarm/lib/timeedit.*),
with the hours and minutes values controlled by separate spin widgets.
When the locale uses 12 hour time formats, a combo box for am/pm is
displayed alongside the main widget.

-- 
David Jarvie.
KAlarm author & maintainer.
http://www.astrojar.org.uk/kalarm





More information about the kde-core-devel mailing list