← Back to team overview

qreator-discuss team mailing list archive

Re: Date-Time picker for the Event QR code

 

Al 02/01/13 17:13, En/na Stefan Schwarzburg ha escrit:
> Hi,
> 
> A while ago I started to implement the event datatype for qreator, but
> got stuck at the UI for the date time picker.
> 
> A typical event will have a start- and an end-time and date. And I
> would like to have a nice UI for that.
> I know that we will switch from Gtk soon, but I guess that there might
> be another Gtk release before that and Gtk does not have a build-in
> date+time picker, so:

Yes, while I'm thinking about QML, we definitely need to get the GTK
version with the latest features, fixes and new design out.

> do you have any preference on the design? I have search for examples
> with other toolkits and found these:
> 
> http://tirania.org/pictures/hwidgets/datetime-picker.jpg
> http://jonathonhill.net/wp-content/uploads/2009/03/date-time.jpg
> http://opendatakit.org/wp-content/uploads/static/form-design/images-scaled/datetime.png
> 
> The date is easy and has a standard Gtk implementation (a calendar),
> however the time widget is more complicated:
> The basic ideas are:
> - a clock (normal, 0-12, with an additional am/pm switch): good: looks
> very natural. bad: am/pm is not easy to localize (there is e.g. no
> German equivalent, we only use 0-24, which is not easy to portrait in
> a clock...)
> - slider for hour minute: good: easy to implement, bad: not a very
> natural/common way to select time
> - counter widgets with up/down buttons for hour/minute or even for
> year/month/day/hour/minute: good: close to the typical iPhone selector
> wheels. bad: better for touch than for mouse
> 
> What do you think? Do you have a favorite? Or would you stop and wait for Qt...
> 

I think what I would do is to steal the implementation of the time
"counter" from the distro's Date & Time settings, which seems easy
enough to implement and should support localization (would need to
doble-check, as I remember it having some issues at some point).

However, I'm thinking on where to best put our efforts, and with Ubuntu
coming to phones real soon, I'd like to concentrate on a Qreator version
that has a single codebase and runs on multiple devices. So I think at
this point, it would probably make sense to start using the Ubuntu SDK
(and thus QML).

Let me elaborate more on that on a separate e-mail in a minute.

Cheers,
David.

Attachment: signature.asc
Description: OpenPGP digital signature


References