mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 06:06:10 -04:00
* set Qt::IgnoreAspectRatio for pictures
* added for MessengerWindow the new getAvatar and updateAvatar function git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@961 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
2212393b9e
commit
171a5bef0d
4 changed files with 102 additions and 109 deletions
|
@ -608,7 +608,7 @@ void PopupChatDialog::getAvatar()
|
|||
QString fileName = QFileDialog::getOpenFileName(this, "Load File", QDir::homePath(), "Pictures (*.png *.xpm *.jpg)");
|
||||
if(!fileName.isEmpty())
|
||||
{
|
||||
picture = QPixmap(fileName).scaled(82,82, Qt::KeepAspectRatio);
|
||||
picture = QPixmap(fileName).scaled(82,82, Qt::IgnoreAspectRatio);
|
||||
|
||||
std::cerr << "Sending avatar image down the pipe" << std::endl ;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue