mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Rescale avatars in the friend widget
This commit is contained in:
parent
3cb1d280bc
commit
ab3f2e2950
|
@ -200,5 +200,6 @@ void FriendWidget::onAvatarChange(int FriendId, const QPixmap& pic)
|
|||
return;
|
||||
|
||||
isDefaultAvatar = false;
|
||||
avatar.setPixmap(pic);
|
||||
QPixmap scaled = pic.scaled(40,40,Qt::KeepAspectRatio,Qt::SmoothTransformation);
|
||||
avatar.setPixmap(scaled);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user