1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 00:27:43 +00:00

PaintBrush: Add support for opening files.

Obviously this only supports whatever PNG files that load_png() can decode
at the moment.
This commit is contained in:
Andreas Kling 2019-06-25 20:27:32 +02:00
parent 8adae51b35
commit b529b4a3e6
3 changed files with 24 additions and 0 deletions

View file

@ -90,3 +90,9 @@ void PaintableWidget::set_secondary_color(Color color)
if (on_secondary_color_change)
on_secondary_color_change(color);
}
void PaintableWidget::set_bitmap(const GraphicsBitmap& bitmap)
{
m_bitmap = bitmap;
update();
}