mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-09 04:32:51 +00:00
GModel: Add GModelIndex argument to row_count() and column_count().
This is in preparation for supporting hierarchical models.
This commit is contained in:
parent
34118aaaca
commit
add38b3981
Notes:
sideshowbarker
2024-07-19 14:54:24 +09:00
Author: https://github.com/awesomekling
Commit: add38b3981
13 changed files with 28 additions and 28 deletions
LibGUI
|
@ -16,14 +16,14 @@ GSortingProxyModel::~GSortingProxyModel()
|
|||
{
|
||||
}
|
||||
|
||||
int GSortingProxyModel::row_count() const
|
||||
int GSortingProxyModel::row_count(const GModelIndex& index) const
|
||||
{
|
||||
return target().row_count();
|
||||
return target().row_count(index);
|
||||
}
|
||||
|
||||
int GSortingProxyModel::column_count() const
|
||||
int GSortingProxyModel::column_count(const GModelIndex& index) const
|
||||
{
|
||||
return target().column_count();
|
||||
return target().column_count(index);
|
||||
}
|
||||
|
||||
GModelIndex GSortingProxyModel::map_to_target(const GModelIndex& index) const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue