1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 22:15:07 +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:
Andreas Kling 2019-03-29 03:27:03 +01:00
parent 34118aaaca
commit add38b3981
13 changed files with 28 additions and 28 deletions

View file

@ -15,12 +15,12 @@ IRCWindowListModel::~IRCWindowListModel()
{
}
int IRCWindowListModel::row_count() const
int IRCWindowListModel::row_count(const GModelIndex&) const
{
return m_client.window_count();
}
int IRCWindowListModel::column_count() const
int IRCWindowListModel::column_count(const GModelIndex&) const
{
return 1;
}