1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-10 01:51:03 +09:00

LibGUI: Add GUI::Model::accepts_drag(index, data_type)

This allows a model to indicate whether it would accept a drag with a
given data type being dropped on a given index.
This commit is contained in:
Andreas Kling 2020-02-13 21:45:46 +01:00
parent 3ce80bec97
commit 6e7ca44dee
Notes: sideshowbarker 2024-07-19 09:21:38 +09:00
2 changed files with 6 additions and 0 deletions

View file

@ -88,6 +88,7 @@ public:
virtual bool is_editable(const ModelIndex&) const { return false; }
virtual void set_data(const ModelIndex&, const Variant&) {}
virtual int tree_column() const { return 0; }
virtual bool accepts_drag(const ModelIndex&, const StringView& data_type);
bool is_valid(const ModelIndex& index) const
{