redesigned the Chatlobby participants list

- used now QTreeWidget instead of a QListWidget
- added icons for display the muted participants
- added context menu for "Mute participant" ( context menu fix from thunder)

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5818 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2012-11-14 14:39:08 +00:00
parent d3a3efd492
commit 40b80c4e84
3 changed files with 93 additions and 21 deletions

View file

@ -43,6 +43,7 @@ public:
private slots:
void showParticipantsFrame(bool show);
void participantsTreeWidgetCostumPopupMenu( QPoint point );
protected:
/** Default constructor */
@ -59,9 +60,11 @@ protected:
protected slots:
void changeNickname();
void changePartipationState(QListWidgetItem *item);
void changePartipationState();
private:
QTreeWidgetItem *getCurrentParticipant();
void updateParticipantsList();
void muteParticipant(const QString &nickname);
@ -79,7 +82,7 @@ private:
/** Ignored Users in Chatlobby by nickname until we had implemented Peer Ids in ver 0.6 */
QStringList *mutedParticipants;
QAction *muteAct;
};
#endif