mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 10:48:41 +00:00
LibGUI: Make SortingProxyModel forward is_editable() and set_data()
This will allow us to edit models through a SortingProxyModel. :^)
This commit is contained in:
@@ -285,4 +285,14 @@ bool SortingProxyModel::is_column_sortable(int column_index) const
|
||||
return source().is_column_sortable(column_index);
|
||||
}
|
||||
|
||||
bool SortingProxyModel::is_editable(const ModelIndex& proxy_index) const
|
||||
{
|
||||
return source().is_editable(map_to_source(proxy_index));
|
||||
}
|
||||
|
||||
void SortingProxyModel::set_data(const ModelIndex& proxy_index, const Variant& data)
|
||||
{
|
||||
source().set_data(map_to_source(proxy_index), data);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user