fixed icons in chat lobbies

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6160 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2013-02-27 22:17:49 +00:00
parent c13192b4c3
commit 061a8113bb
6 changed files with 89 additions and 36 deletions

View file

@ -10,6 +10,13 @@ class ChatTabWidget ;
class ChatLobbyDialog ;
class QTextBrowser ;
struct ChatLobbyInfoStruct
{
QIcon default_icon ;
ChatLobbyDialog *dialog ;
time_t last_typing_event ;
};
class ChatLobbyWidget : public RsAutoUpdatePage, Ui::ChatLobbyWidget
{
Q_OBJECT
@ -41,6 +48,9 @@ protected slots:
void unsubscribeChatLobby(ChatLobbyId id) ;
void updateTypingStatus(ChatLobbyId id) ;
void resetLobbyTreeIcons() ;
void updateMessageChanged(ChatLobbyId);
void updatePeerEntering(ChatLobbyId);
void updatePeerLeaving(ChatLobbyId);
private:
RSTreeWidgetItemCompareRole *compareRole;
@ -50,7 +60,7 @@ private:
ChatTabWidget *tabWidget ;
std::map<ChatLobbyId,ChatLobbyDialog*> _lobby_dialogs ;
std::map<ChatLobbyId,ChatLobbyInfoStruct> _lobby_infos ;
QTextBrowser *_lobby_blank_page ;
std::map<QTreeWidgetItem*,time_t> _icon_changed_map ;