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:
csoler 2010-06-20 12:13:47 +00:00
parent 7e307af78b
commit bf6f74c16a
4 changed files with 4 additions and 4 deletions

View File

@ -243,7 +243,7 @@ void CreateChannel::addChannelLogo()
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.ChannelLogoButton->setIcon(picture);

View File

@ -479,7 +479,7 @@ void CreateChannelMsg::addThumbnail()
QString fileName = QFileDialog::getOpenFileName(this, "Load File", QDir::homePath(), "Pictures (*.png *.xpm *.jpg)");
if(!fileName.isEmpty())
{
picture = QPixmap(fileName).scaled(156,107, Qt::IgnoreAspectRatio);
picture = QPixmap(fileName).scaled(156,107, Qt::IgnoreAspectRatio,Qt::SmoothTransformation);
// to show the selected
thumbnail_label->setPixmap(picture);

View File

@ -244,7 +244,7 @@ void ProfileView::selectimagefile()
"Pictures (*.png *.xpm *.jpg)");
if(!fileName.isEmpty())
{
picture = QPixmap(fileName).scaled(108,108, Qt::IgnoreAspectRatio);
picture = QPixmap(fileName).scaled(108,108, Qt::IgnoreAspectRatio,Qt::SmoothTransformation);
ui.photoLabel->setPixmap(picture);
}
}

View File

@ -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);