mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-27 11:48:32 +00: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:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user