mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-06 08:05:18 -04:00
added correct image interpolation whenever QPixmap::scaled is called
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3175 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
7e307af78b
commit
bf6f74c16a
4 changed files with 4 additions and 4 deletions
|
@ -145,7 +145,7 @@ void CreateBlog::addBlogLogo(){
|
|||
QString fileName = QFileDialog::getOpenFileName(this, "Load File", QDir::homePath(), "Pictures (*.png *.xpm *.jpg)");
|
||||
if(!fileName.isEmpty())
|
||||
{
|
||||
picture = QPixmap(fileName).scaled(64,64, Qt::IgnoreAspectRatio);
|
||||
picture = QPixmap(fileName).scaled(64,64, Qt::IgnoreAspectRatio,Qt::SmoothTransformation);
|
||||
|
||||
// to show the selected
|
||||
ui.blogLogoButton->setIcon(picture);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue