LibGUI: Have FileSystemModel accept url-list drags onto directories

This commit is contained in:
Andreas Kling 2020-02-13 21:46:52 +01:00
commit 8b3864c70a
Notes: sideshowbarker 2024-07-19 09:21:36 +09:00
2 changed files with 12 additions and 1 deletions

View file

@ -124,6 +124,7 @@ public:
virtual ModelIndex parent_index(const ModelIndex&) const override;
virtual ModelIndex index(int row, int column = 0, const ModelIndex& parent = ModelIndex()) const override;
virtual StringView drag_data_type() const override { return "url-list"; }
virtual bool accepts_drag(const ModelIndex&, const StringView& data_type) override;
static String timestamp_string(time_t timestamp)
{