PixelPaint: Allow opening of files dropped onto application :^)

We can now drag-and-drop files onto PixelPaint to be able to open
them. Each dropped file opens in a separate editor (which is the
default behavior of Photoshop).
This commit is contained in:
Mustafa Quraish 2021-09-06 00:24:12 -04:00 committed by Andreas Kling
commit f8570bd773
Notes: sideshowbarker 2024-07-18 04:38:01 +09:00
2 changed files with 24 additions and 0 deletions

View file

@ -43,6 +43,8 @@ private:
ImageEditor* current_image_editor();
ImageEditor& create_new_editor(NonnullRefPtr<Image>);
virtual void drop_event(GUI::DropEvent&) override;
ProjectLoader m_loader;
RefPtr<ToolboxWidget> m_toolbox;