Project

General

Profile

Getting a spinbox to show integers with a leading zero

Added by Edwin Bentley almost 10 years ago

Basically, we want to allow the user to input a time. We are currently implementing this with an Hour spinbox, and a minute spinbox.

Is there a way to have a leading 0 for values that are only one digit long. i.e. we'd like to be able to show 09 : 05 as currently this is shown as 9 : 5

If there isn't currently a way to do this, would it be a feature that you might consider adding in the future? It's only really a cosmetic issue.


Replies (1)

RE: Getting a spinbox to show integers with a leading zero - Added by Koen Deforche almost 10 years ago

Hey Edwin,

This currently is not possible (because you cannot effectively specialize the JavaScript that is involved).

Please file a feature request, since we should have more flexibility with respect to this, and it also touches on some other features we are looking to resolve (i.e. improved localization and consistent text formatting/parsing).

Regards,

koen

    (1-1/1)