From c1f24b27ba0d1289b9e7ab6afd5cede5bac26256 Mon Sep 17 00:00:00 2001 From: "Tux3 / Mlkj / !Lev.uXFMLA" Date: Wed, 24 Sep 2014 18:25:09 +0200 Subject: [PATCH] Fix self avatar being cropped --- mainwindow.ui | 3 +++ widget/widget.cpp | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/mainwindow.ui b/mainwindow.ui index 83139cb6c..ff345391b 100644 --- a/mainwindow.ui +++ b/mainwindow.ui @@ -1471,6 +1471,9 @@ QSplitter:handle{ :/img/contact.png + + true + true diff --git a/widget/widget.cpp b/widget/widget.cpp index 73b6946a2..b2e1de6b5 100644 --- a/widget/widget.cpp +++ b/widget/widget.cpp @@ -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()