[PATCH] KDoubleSpinBox and KDoubleValidator

Marc Mutz Marc.Mutz at uni-bielefeld.de
Wed Jul 24 20:53:35 BST 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday 17 July 2002 23:54, Marc Mutz wrote:
> On Wednesday 17 July 2002 23:04, Dirk Mueller wrote:
> > On Mit, 17 Jul 2002, Marc Mutz wrote:
> > > Ok, attached patch ( against BRANCH, but should apply against
> > > HEAD, too) ports KDoubleNumInout to use KDoubleSpinBox.
> >
> > Great. (although there was no patch).
>
> Oops. Here it comes.
<snip>

And here comes the (hopefully) final version. it fixes a few bugs and 
adds some more tests to knuminputtest. Among them is a math test for 
KNumInput, which triggers a drawing bug in QCommonStyle (there are no 
or only one tickmark where there should be ten). Reported to qt-bugs.

The other thing that's new is a set of methods (both for kint- and 
kdoublenuminput) that deal with relative values (relative w.r.t. to a 
settable reference point). That makes it easy to implement "keep aspect 
ratio" functionality with just a cross-connection of signals, see the 
examples in knuminputtest vs. the implementation of e.g. 
kpresenter/styledia.cc.

Please check for BC issues. I've taken great care not to break it, but 
there are some no-longer-used member variables that need to be kept 
uptodate b/c inlined getters exist or they are protected.

All in all it's become quite a big patch (>50K).

Marc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9PwXI3oWD+L2/6DgRAgy6AKCLE+YoVpXZsmO3hwJtPnzyGNiYwQCfVJN7
1dfTP3we5UGenQ7P2jYYlh0=
=BhOm
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kdouble2.diff.bz2
Type: application/x-bzip2
Size: 12475 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20020724/2e63a6d8/attachment.bin>


More information about the kde-core-devel mailing list