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
commit add38b3981
Notes: sideshowbarker 2024-07-19 14:54:24 +09:00
13 changed files with 28 additions and 28 deletions

View file

@ -13,12 +13,12 @@ IRCChannelMemberListModel::~IRCChannelMemberListModel()
{
}
int IRCChannelMemberListModel::row_count() const
int IRCChannelMemberListModel::row_count(const GModelIndex&) const
{
return m_channel.member_count();
}
int IRCChannelMemberListModel::column_count() const
int IRCChannelMemberListModel::column_count(const GModelIndex&) const
{
return 1;
}