forked from blue/squawk
offline avatars in mucs
This commit is contained in:
parent
29c7d31c89
commit
21c7d65027
16 changed files with 225 additions and 45 deletions
|
@ -92,6 +92,16 @@ Conversation::Conversation(bool muc, Models::Account* acc, const QString pJid, c
|
|||
line->setMyAvatarPath(acc->getAvatarPath());
|
||||
line->setMyName(acc->getName());
|
||||
|
||||
QFont nf = m_ui->nameLabel->font();
|
||||
nf.setBold(true);
|
||||
nf.setPointSize(nf.pointSize() + 2);
|
||||
m_ui->nameLabel->setFont(nf);
|
||||
|
||||
QFont sf = statusLabel->font();
|
||||
sf.setItalic(true);
|
||||
sf.setPointSize(sf.pointSize() - 2);
|
||||
statusLabel->setFont(sf);
|
||||
|
||||
applyVisualEffects();
|
||||
}
|
||||
|
||||
|
|
|
@ -38,6 +38,8 @@ Room::Room(Models::Account* acc, Models::Room* p_room, QWidget* parent):
|
|||
line->setPalAvatar(pair.first, aPath);
|
||||
}
|
||||
}
|
||||
|
||||
line->setExPalAvatars(room->getExParticipantAvatars());
|
||||
}
|
||||
|
||||
Room::~Room()
|
||||
|
@ -104,5 +106,5 @@ void Room::onParticipantJoined(const Models::Participant& participant)
|
|||
|
||||
void Room::onParticipantLeft(const QString& name)
|
||||
{
|
||||
line->dropPalAvatar(name);
|
||||
line->movePalAvatarToEx(name);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue