mirror of
https://github.com/RGBCube/serenity
synced 2025-05-30 21:38:11 +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
13 changed files with 28 additions and 28 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue