PixelPaint: Have layers and images send out notifications on changes

We use this to automatically update the thumbnail in LayerListWidget
when you draw into a layer. We also use it to repaint the ImageEditor
when the image changes somehow. :^)
This commit is contained in:
Andreas Kling 2020-05-25 22:49:50 +02:00
commit dc3de47b03
Notes: sideshowbarker 2024-07-19 06:08:07 +09:00
14 changed files with 53 additions and 12 deletions

View file

@ -125,7 +125,7 @@ void LayerListWidget::image_did_remove_layer(size_t layer_index)
relayout_gadgets();
}
void LayerListWidget::image_did_update_layer(size_t layer_index)
void LayerListWidget::image_did_modify_layer(size_t layer_index)
{
update(m_gadgets[layer_index].rect);
}