1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Merge pull request #320 from apprb/master

ChatForm: avatar scale
This commit is contained in:
Tux3 / Mlkj / !Lev.uXFMLA 2014-09-26 16:37:24 +02:00
commit dfc40aa8e8

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)