[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-kimageshop
Subject:    Re: kis_canvas and widgets
From:       Boudewijn Rempt <boud () valdyas ! org>
Date:       2005-03-25 9:54:55
Message-ID: 200503251055.01087.boud () valdyas ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


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

[Attachment #5 (application/pgp-signature)]

_______________________________________________
kimageshop mailing list
kimageshop@kde.org
https://mail.kde.org/mailman/listinfo/kimageshop


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic