diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-03-29 03:27:03 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-03-29 03:27:03 +0100 |
commit | add38b39818c3e77f5352a8014efb5b4928a8a74 (patch) | |
tree | e1be70553f46116a601c199d312c640ac4daa8ce /Applications/IRCClient/IRCChannelMemberListModel.cpp | |
parent | 34118aaacae54f569cb10914c49464da5a576686 (diff) | |
download | serenity-add38b39818c3e77f5352a8014efb5b4928a8a74.zip |
GModel: Add GModelIndex argument to row_count() and column_count().
This is in preparation for supporting hierarchical models.
Diffstat (limited to 'Applications/IRCClient/IRCChannelMemberListModel.cpp')
-rw-r--r-- | Applications/IRCClient/IRCChannelMemberListModel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Applications/IRCClient/IRCChannelMemberListModel.cpp b/Applications/IRCClient/IRCChannelMemberListModel.cpp index 8e474d7e7a..057838a046 100644 --- a/Applications/IRCClient/IRCChannelMemberListModel.cpp +++ b/Applications/IRCClient/IRCChannelMemberListModel.cpp @@ -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; } |