diff options
author | Kevin Smith <git@kismith.co.uk> | 2011-07-07 20:29:10 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2011-07-07 20:29:10 (GMT) |
commit | 3ef9dabfc62cb3daf0b88543a5d65d31e8eb5977 (patch) | |
tree | 980de61384d9cb924d130eedb051245f02434776 /Swift/QtUI/ChatList | |
parent | ebda58fd30c7a4aec8f04e3751de869579b71cac (diff) | |
download | swift-contrib-3ef9dabfc62cb3daf0b88543a5d65d31e8eb5977.zip swift-contrib-3ef9dabfc62cb3daf0b88543a5d65d31e8eb5977.tar.bz2 |
Add setUnreadCount to ChatListView
Resolves: #904
Diffstat (limited to 'Swift/QtUI/ChatList')
-rw-r--r-- | Swift/QtUI/ChatList/QtChatListWindow.cpp | 4 | ||||
-rw-r--r-- | Swift/QtUI/ChatList/QtChatListWindow.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/Swift/QtUI/ChatList/QtChatListWindow.cpp b/Swift/QtUI/ChatList/QtChatListWindow.cpp index 7ef6ae5..cfbbcb9 100644 --- a/Swift/QtUI/ChatList/QtChatListWindow.cpp +++ b/Swift/QtUI/ChatList/QtChatListWindow.cpp @@ -99,6 +99,10 @@ void QtChatListWindow::setRecents(const std::list<ChatListWindow::Chat>& recents model_->setRecents(recents); } +void QtChatListWindow::setUnreadCount(int unread) { + +} + void QtChatListWindow::handleRemoveBookmark() { ChatListMUCItem* mucItem = dynamic_cast<ChatListMUCItem*>(contextMenuItem_); if (!mucItem) return; diff --git a/Swift/QtUI/ChatList/QtChatListWindow.h b/Swift/QtUI/ChatList/QtChatListWindow.h index f5c12f6..67f2c41 100644 --- a/Swift/QtUI/ChatList/QtChatListWindow.h +++ b/Swift/QtUI/ChatList/QtChatListWindow.h @@ -24,6 +24,7 @@ namespace Swift { void removeMUCBookmark(const MUCBookmark& bookmark); void setBookmarksEnabled(bool enabled); void setRecents(const std::list<ChatListWindow::Chat>& recents); + void setUnreadCount(int unread); void clearBookmarks(); private slots: void handleItemActivated(const QModelIndex&); |