1
Fork 0
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:
Andreas Kling 2021-01-09 11:35:42 +01:00
parent 12d0d12a78
commit 7baaa34490
6 changed files with 11 additions and 5 deletions

View file

@ -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));