[Ktechlab-devel] Rotary Switch

John Myers electronerd at electronerdia.net
Tue Dec 20 19:24:51 UTC 2005


On Sunday 18 December 2005 15:45, David Saxton wrote:
> Cool stuff :) I've added the switch to svn.
Neat
>

> Are you planning on doing an icon for it? If not, I'll make one for it.
>
> Also, selection of the component relies on the bounding points you give it
> - at the moment, you have a rectangle - but a circle might better suit the
> circular switch; to do so, replace "setSize( -64, -64, 128, 128 );" with
> something like
>
> QPointArray pa;
> pa.makeArc( -56, -56, 112, 112 , 0, 16*360 );
> setItemPoints( pa );
>
> and update the positioning of other things (the bounding points as defined
> in setSize or setItemPoints shouldn't really overlap with the pins).
ok. I'd used the DPDT as an example, and it uses setSize
>
> If you want an svn account, email me with a username and password.
ok. I've got some improvements I've been working on


-- 
# 
# electronerd, the electronerdian from electronerdia
#
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/ktechlab-devel/attachments/20051220/ac1920fd/attachment.sig>


More information about the Ktechlab-devel mailing list