mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 22:25:04 -04:00
* set for the Avatar Button a Background image
* set for Avatar Pictures to use IgnoreAspectRatio git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@918 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
e3775fceda
commit
935a52dee3
2 changed files with 86 additions and 44 deletions
|
@ -539,7 +539,7 @@ void MessengerWindow::getPicture()
|
|||
"Pictures (*.png *.xpm *.jpg)");
|
||||
if(!fileName.isEmpty())
|
||||
{
|
||||
picture = QPixmap(fileName).scaled(72,72, Qt::KeepAspectRatio);
|
||||
picture = QPixmap(fileName).scaled(53,53, Qt::IgnoreAspectRatio);
|
||||
ui.avatarButton->setIcon(picture);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue