PixelPaint: Propagate more errors when saving a project file

This commit is contained in:
Karol Kosek 2022-12-17 15:38:01 +01:00 committed by Andreas Kling
commit 11377bf0f8
Notes: sideshowbarker 2024-07-17 07:35:03 +09:00
4 changed files with 32 additions and 31 deletions

View file

@ -72,7 +72,7 @@ public:
void paint_into(GUI::Painter&, Gfx::IntRect const& dest_rect) const;
void serialize_as_json(JsonObjectSerializer<StringBuilder>& json) const;
ErrorOr<void> serialize_as_json(JsonObjectSerializer<StringBuilder>& json) const;
ErrorOr<void> export_bmp_to_file(Core::File&, bool preserve_alpha_channel);
ErrorOr<void> export_png_to_file(Core::File&, bool preserve_alpha_channel);
ErrorOr<void> export_qoi_to_file(Core::File&) const;