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

ThemeEditor: Take drop events from the whole window

Drops were handled only by the Preview Widget previously. It probably
made a little more sense before the program redesign, as it took most of
window the space, but now honestly this idea doesn't hold up that well.
This commit is contained in:
Karol Kosek 2023-01-10 22:30:36 +01:00 committed by Sam Atkins
parent 0267d35258
commit 93a2b2a02d
4 changed files with 34 additions and 33 deletions

View file

@ -91,6 +91,9 @@ public:
private:
explicit MainWidget(NonnullRefPtr<AlignmentModel>);
virtual void drag_enter_event(GUI::DragEvent&) override;
virtual void drop_event(GUI::DropEvent&) override;
void save_to_file(String const& filename, NonnullOwnPtr<Core::Stream::File> file);
ErrorOr<Core::AnonymousBuffer> encode();
void set_path(DeprecatedString);