Commit graph

4 commits

Author SHA1 Message Date
Ivailo Monev
8af06be32c kdeui: reject invalid minimum/maximum time from KTimeEdit setters
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-02 17:40:04 +03:00
Ivailo Monev
b92f3b6191 kdeui: handle arrows state and bound the input in KTimeEdit
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-02 17:35:20 +03:00
Ivailo Monev
9642bc3d81 kdeui: handle zero time as special case in KTimeEdit and better min/max
the plasma frame applet for example uses zero time (QTime(0, 0, 0), not
invalid time) as a special for case for "never" (i.e. don't update) so
having this feature will make KTimeEdit even more suitable for timers (that
ofcourse has to be handled by the application or library, zero time timers
are a thing)

also min/max now allows to set lower seconds (for example) when the minute
is not zero instead of just restricting the seconds value to a hard-minumum
altough that makes me think a step feature may be needed (e.g. to now allow
intervals less than two seconds with minimum of one second)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-03 05:58:23 +03:00
Ivailo Monev
4de3537a82 kdeui: new KTimeEdit widget
inspired by QTimeEdit but ment for timers

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-02 13:14:24 +03:00