Browse Source

Keep avatar aspect ratio

pull/317/head
Tux3 / Mlkj / !Lev.uXFMLA 11 years ago
parent
commit
81e6d8323a
  1. 2
      widget/widget.cpp

2
widget/widget.cpp

@ -320,7 +320,7 @@ void Widget::onAvatarClicked() @@ -320,7 +320,7 @@ void Widget::onAvatarClicked()
void Widget::onSelfAvatarLoaded(const QPixmap& pic)
{
QPixmap scaled = pic.scaledToWidth(40, Qt::SmoothTransformation);
QPixmap scaled = pic.scaled(40,40, Qt::KeepAspectRatio,Qt::SmoothTransformation);
ui->profilePicture->setPixmap(scaled);
}

Loading…
Cancel
Save