From e1d48367f8ccb83fc1fcdaee899e5bf4f8ac2669 Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Sat, 15 Apr 2017 19:04:02 +0300 Subject: Show the unread message count on the window title --- include/RoomList.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/RoomList.h') diff --git a/include/RoomList.h b/include/RoomList.h index d6066166..e22f0954 100644 --- a/include/RoomList.h +++ b/include/RoomList.h @@ -48,6 +48,7 @@ public: signals: void roomChanged(const RoomInfo &info); + void totalUnreadMessageCountUpdated(int count); public slots: void updateRoomAvatar(const QString &roomid, const QPixmap &img); @@ -55,6 +56,8 @@ public slots: void updateUnreadMessageCount(const QString &roomid, int count); private: + void calculateUnreadMessageCount(); + Ui::RoomList *ui; QMap rooms_; -- cgit 1.5.1