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

List:       kde-kimageshop
Subject:    Re: kis_canvas and widgets
From:       Michael Thaler <michael.thaler () ph ! tum ! de>
Date:       2005-03-25 9:44:24
Message-ID: 200503251044.24314.michael.thaler () physik ! tu-muenchen ! de
[Download RAW message or body]

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
_______________________________________________
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