mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-21 15:14:13 +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:
@@ -77,4 +77,9 @@ ModelIndex Model::sibling(int row, int column, const ModelIndex& parent) const
|
||||
return index(row, column, parent);
|
||||
}
|
||||
|
||||
bool Model::accepts_drag(const ModelIndex&, const StringView&)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user