forked from blue/squawk
icon and tooltip information in participants, saving bookmarks, subscription and unsubscription, deletion of MUCs
This commit is contained in:
parent
5547d78608
commit
5f8d38bd9a
19 changed files with 216 additions and 9 deletions
|
@ -24,6 +24,9 @@ Room::Room(Models::Room* p_room, QWidget* parent):
|
|||
{
|
||||
setName(p_room->getName());
|
||||
line->setMyName(room->getNick());
|
||||
setStatus(room->getSubject());
|
||||
|
||||
connect(room, SIGNAL(childChanged(Models::Item*, int, int)), this, SLOT(onRoomChanged(Models::Item*, int, int)));
|
||||
}
|
||||
|
||||
Room::~Room()
|
||||
|
@ -48,3 +51,17 @@ bool Room::autoJoined() const
|
|||
{
|
||||
return room->getAutoJoin();
|
||||
}
|
||||
|
||||
void Room::onRoomChanged(Models::Item* item, int row, int col)
|
||||
{
|
||||
if (item == room) {
|
||||
switch (col) {
|
||||
case 0:
|
||||
setName(room->getRoomName());
|
||||
break;
|
||||
case 6:
|
||||
setStatus(room->getSubject());
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue