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

Fix self avatar being cropped

This commit is contained in:
Tux3 / Mlkj / !Lev.uXFMLA 2014-09-24 18:25:09 +02:00
parent 86e483303f
commit c1f24b27ba
2 changed files with 5 additions and 1 deletions

View File

@ -1471,6 +1471,9 @@ QSplitter:handle{
<property name="pixmap">
<pixmap resource="res.qrc">:/img/contact.png</pixmap>
</property>
<property name="scaledContents">
<bool>true</bool>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>

View File

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