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

List:       koffice-devel
Subject:    Re: KoRect::clear()
From:       David Faure <david () mandrakesoft ! com>
Date:       2002-04-28 9:53:56
[Download RAW message or body]

On Sunday 28 April 2002 10:47, Lenny wrote:
> > // clear out
> > r = KoRect();
> 
> Thought about that too. I dont like that much, but will have to go this way 
> then.

Let's keep consistent with the QRect API. AFAIK this is the only way with
QRect.

> > BTW, could it be that KoRect::isNull() is broken in the sense that
> > it does not return true for a KoRect object created with the default
> > constructor?

Whoops. Fixed, thanks.

> Yes. QRect test this way: return x2 == x1-1 && y2 == y1-1;

QRect has this "one pixel difference" stuff that KoRect obviously doesn't have.

-- 
David FAURE, david@mandrakesoft.com, faure@kde.org
http://people.mandrakesoft.com/~david/
Contributing to: http://www.konqueror.org/, http://www.koffice.org/
KDE, Making The Future of Computing Available Today


_______________________________________________
koffice-devel mailing list
koffice-devel@mail.kde.org
http://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

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