forked from blue/squawk
pal avatars in one on one dialogs
This commit is contained in:
parent
f13b43d38b
commit
dd62f84acc
9 changed files with 87 additions and 2 deletions
|
@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue