mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
ChatForm: avatar scale
This commit is contained in:
parent
27c216451e
commit
5e90955e7d
@ -475,7 +475,8 @@ void ChatForm::onAvatarChange(int FriendId, const QPixmap &pic)
|
||||
if (FriendId != f->friendId)
|
||||
return;
|
||||
|
||||
avatarLabel->setPixmap(pic);
|
||||
QPixmap scaled = pic.scaled(40,40,Qt::KeepAspectRatio,Qt::SmoothTransformation);
|
||||
avatarLabel->setPixmap(scaled);
|
||||
}
|
||||
|
||||
void ChatForm::dragEnterEvent(QDragEnterEvent *ev)
|
||||
|
Loading…
x
Reference in New Issue
Block a user