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:
parent
86e483303f
commit
c1f24b27ba
|
@ -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>
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user