Dirty and selection

Bart Coppens kde at bartcoppens.be
Wed Dec 6 00:09:24 CET 2006


On Tuesday 05 December 2006 23:57, Cyrille Berger wrote:
> Hi
> How is dirty supposed to work with kselection ?
> I have noticed
> KisSelection::setInterestedInDirtyness/interestedInDirtyness, but I can't
> figure out what they are suppose to do ? I ask because I have implemented a
> move tool for the selection, but undoing doesn't trigger a redisplay of the
> canvas.
interestInDirtyness -> that's for the adjustment layers. Iirc it was because 
the KisSelection didn't inform the parent layer when it got updated (which we 
need for the adjustment layer, because technically it is the parent of the 
selection containing the mask). So because in normal circumstances you don't 
want the parent to get informed, but sometimes (with adjustment) you do, I 
introduced that.

trigger redisplay -> aren't we supposed to actively ask for a redisplay or so 
when changing the selection? I think I recall some bugs caused by that in the 
selectiontools.

Bart


More information about the kimageshop mailing list