kis_canvas and widgets

Michael Thaler michael.thaler at ph.tum.de
Fri Mar 25 10:44:24 CET 2005


On Thursday 24 March 2005 22:00, Boudewijn Rempt wrote:

> Try kpview.cpp, around line 1289, where it says
>
>     //
>     // Draw selection border
>     //

Kolourpaint draws the handles with qpainter. So this is probably the way to 
go. Does anyone anderstand this macro?

#define ADD_BOX_RELATIVE_TO_SELECTION(type,x,y)    \
    ret += QRect ((x), (y), type##AtomicLength, type##AtomicLength)

it is used like this:

ADD_BOX_RELATIVE_TO_SELECTION (normal,
                                   selViewRect.width () - normalAtomicLength,
                                   selViewRect.height () - 
normalAtomicLength);

basically, my question is, what does the type##AtomicLength exactly do?

Take care,
Michael


More information about the kimageshop mailing list