kis_canvas and widgets

Boudewijn Rempt boud at valdyas.org
Fri Mar 25 10:54:55 CET 2005


On Friday 25 March 2005 10:52, Michael Thaler wrote:
> On Friday 25 March 2005 10:44, Michael Thaler wrote:
> > #define ADD_BOX_RELATIVE_TO_SELECTION(type,x,y)    \
> >     ret += QRect ((x), (y), type##AtomicLength, type##AtomicLength)
>
> O:K., I got it. There are two variables: normalAtomicLength and
> vertEdgeAtomicLength and type allows it to chose one of them by specifying
> normal or vertEdge. Actually not that hard to understand, but I get scared
> everytime I see these macros and somehow my brain turns of then:-)
>
> But why are the two ## necessary?
>
> (I suppose we better don't use stuff like this in our code. I don't have
> the feeling it helps to make the code more understandable...)
>

Definitely not. There's enough in Krita that's too hard for me to understand 
already...

-- 
Boudewijn Rempt 
http://www.valdyas.org/fading/index.cgi
-------------- 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/kimageshop/attachments/20050325/943308b2/attachment.pgp


More information about the kimageshop mailing list