icon and tooltip information in participants, saving bookmarks, subscription and unsubscription, deletion of MUCs

This commit is contained in:
Blue 2019-09-03 23:28:58 +03:00
parent 5547d78608
commit 5f8d38bd9a
19 changed files with 216 additions and 9 deletions

View file

@ -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;
}
}
}