mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-29 13:42:00 +00:00
PixelPaint: Allow reordering layer by dragging them in LayerListWidget
This is rather cool! :^)
This commit is contained in:
parent
dc3de47b03
commit
e4b11a23b7
Notes:
sideshowbarker
2024-07-19 06:08:04 +09:00
Author: https://github.com/awesomekling
Commit: e4b11a23b7
6 changed files with 169 additions and 16 deletions
|
@ -39,10 +39,22 @@ ImageEditor::ImageEditor()
|
|||
{
|
||||
}
|
||||
|
||||
ImageEditor::~ImageEditor()
|
||||
{
|
||||
if (m_image)
|
||||
m_image->remove_client(*this);
|
||||
}
|
||||
|
||||
void ImageEditor::set_image(RefPtr<Image> image)
|
||||
{
|
||||
if (m_image)
|
||||
m_image->remove_client(*this);
|
||||
|
||||
m_image = move(image);
|
||||
update();
|
||||
|
||||
if (m_image)
|
||||
m_image->add_client(*this);
|
||||
}
|
||||
|
||||
void ImageEditor::paint_event(GUI::PaintEvent& event)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue