Layer tree model

Cyrille Berger cberger at cberger.net
Fri Mar 23 15:20:11 CET 2007


On Friday 23 March 2007, Boudewijn Rempt wrote:
> But when do I do the calls to beginInsertRows, endInsertRows,
> beginRemoveRows and endRemoveRows if not in KisImage::addLayer and
> KisImage::removeLayer? I could do signals for that, of course. That would
> fix this part up.

hum yes, signals is the correct solution. The only annoying things is that the 
model needs to call a function before the insertion/deletion, and one after. 
That would require two signals, aboutToInsertLayer (delete) 
layerInserted (deleted)
-- 
Cyrille Berger


More information about the kimageshop mailing list