summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2011-07-07 20:29:10 (GMT)
committerKevin Smith <git@kismith.co.uk>2011-07-07 20:29:10 (GMT)
commit3ef9dabfc62cb3daf0b88543a5d65d31e8eb5977 (patch)
tree980de61384d9cb924d130eedb051245f02434776 /Swift/QtUI
parentebda58fd30c7a4aec8f04e3751de869579b71cac (diff)
downloadswift-3ef9dabfc62cb3daf0b88543a5d65d31e8eb5977.zip
swift-3ef9dabfc62cb3daf0b88543a5d65d31e8eb5977.tar.bz2
Add setUnreadCount to ChatListView
Resolves: #904
Diffstat (limited to 'Swift/QtUI')
-rw-r--r--Swift/QtUI/ChatList/QtChatListWindow.cpp4
-rw-r--r--Swift/QtUI/ChatList/QtChatListWindow.h1
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&);