1
0
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:
apprb 2014-09-26 19:17:27 +07:00
parent 27c216451e
commit 5e90955e7d

View File

@ -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)