mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-27 06:48:49 +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:
parent
3ce80bec97
commit
6e7ca44dee
Notes:
sideshowbarker
2024-07-19 09:21:38 +09:00
Author: https://github.com/awesomekling
Commit: 6e7ca44dee
2 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue