pal avatars in one on one dialogs

This commit is contained in:
Blue 2019-12-23 09:28:23 +03:00
parent f13b43d38b
commit dd62f84acc
9 changed files with 87 additions and 2 deletions

View file

@ -384,6 +384,11 @@ void Conversation::onClearButton()
m_ui->messageEditor->clear();
}
void Conversation::setAvatar(const QString& path)
{
m_ui->avatar->setPixmap(path.size() == 0 ? Shared::iconPath("user", true) : path);
}
void Conversation::onAttachResize(const QSize& oldSize, const QSize& newSize)
{
int oh = oldSize.height();
@ -419,4 +424,3 @@ VisibilityCatcher::VisibilityCatcher(QWidget* parent):
QObject(parent)
{
}