[RkWard-devel] integer spinbox behaviour
Thomas Friedrichsmeier
thomas.friedrichsmeier at ruhr-uni-bochum.de
Fri Dec 15 14:24:41 UTC 2006
Hi,
On Friday 15 December 2006 14:00, Jimmy Shadbolt wrote:
> I'm trying to set up an integer spinbox with a non-zero initial value, but
> can't make it work.
>
> If I set min=0, max=20, initialvalue=0, then it will increment/decrement by
> 1. If I set any other initial value, it will increment/decrement by some
> multiple of 10. So if min=0 and max=20, an initial value of 20 will only
> allow me to chose 0 or 20, which is not very usefull!
actually, for initial="1" you should get the same behavior, as for
initial="0", but of course you're right, this is rather broken. In the
development version I have now adjusted the heuristics to chose the step size
(ideally this would be readjusted as the value changes on a logarithmic
scale, i.e. increment by 1 while in the 0-100 range, then by 10 in the
100-1000 range, and so on. Right now however, the step size is set only once
based on the min, max, and initial values), so you will get a saner behavior.
Thanks for reporting!
Out of curiosity: What plugin(s) are you working on?
Regards
Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/rkward-devel/attachments/20061215/0f06bf76/attachment.sig>
More information about the Rkward-devel
mailing list