Repaint strategy for 2.0
Boudewijn Rempt
boud at valdyas.org
Tue May 23 21:33:11 CEST 2006
On Tuesday 23 May 2006 21:25, Thomas Zander wrote:
> On Tuesday 23 May 2006 21:22, Boudewijn Rempt wrote:
> > Bright ideas? I was thinking of painting onto a QImage and having the
> > canvas widgets hold a reference to that -- but there must be a better
> > way. And perhaps we should take the jump and redesign the whole thing
> > aroung the Qt4 way of doing?
>
> I think the flake way of doing things are the most correct.
>
> This involves calling update with the right cliprect whenever something
> needs to be repainted.
> The paint method will then paint everything thats needed to be painted.
Well, that's the short version, of course. But life is a little more
complicated. We've got the image projection that needs to be updated, and
preferably kept updated. We've got the blobs on top of the projects (guides,
grids, masks). We've got OpenGL and plain QPainter -- and need to keep both
possibilities. Currently, the widget that displays the projection doesn't
even know it's got a projection.
--
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/20060523/90b1a196/attachment.pgp
More information about the kimageshop
mailing list