mirror of
https://github.com/RGBCube/serenity
synced 2025-05-21 11:35:08 +00:00
LibGUI: Make SortingProxyModel proxy accepts_drag()
This commit is contained in:
parent
12d0d12a78
commit
7baaa34490
6 changed files with 11 additions and 5 deletions
|
@ -63,6 +63,11 @@ void SortingProxyModel::model_did_update(unsigned flags)
|
|||
invalidate(flags);
|
||||
}
|
||||
|
||||
bool SortingProxyModel::accepts_drag(const ModelIndex& proxy_index, const Vector<String>& mime_types) const
|
||||
{
|
||||
return source().accepts_drag(map_to_source(proxy_index), mime_types);
|
||||
}
|
||||
|
||||
int SortingProxyModel::row_count(const ModelIndex& proxy_index) const
|
||||
{
|
||||
return source().row_count(map_to_source(proxy_index));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue