1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 19:28:12 +00:00

TextEditor: Handle drop events

We now handle drop events with data type "url-list". This makes it
possible to drop a file from FileManager on TextEditor to open it.
This commit is contained in:
Andreas Kling 2019-12-19 20:20:20 +01:00
parent cfcb38dff1
commit 6425b8714a
2 changed files with 21 additions and 0 deletions

View file

@ -26,6 +26,8 @@ private:
void set_path(const FileSystemPath& file);
void update_title();
virtual void drop_event(GDropEvent&) override;
RefPtr<GTextEditor> m_editor;
String m_path;
String m_name;