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:
parent
cfcb38dff1
commit
6425b8714a
2 changed files with 21 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue