summary refs log tree commit diff
path: root/include/RoomList.h
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2017-04-15 19:04:02 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2017-04-15 19:04:02 +0300
commite1d48367f8ccb83fc1fcdaee899e5bf4f8ac2669 (patch)
treeae84a8e5f6d1208d5cbf7a05c6e8ab2eaf322c48 /include/RoomList.h
parentMove the main window to the center (diff)
downloadnheko-e1d48367f8ccb83fc1fcdaee899e5bf4f8ac2669.tar.xz
Show the unread message count on the window title
Diffstat (limited to 'include/RoomList.h')
-rw-r--r--include/RoomList.h3
1 files changed, 3 insertions, 0 deletions
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<QString, RoomInfoListItem *> rooms_;