From: Ilkka Ollakka Date: Wed, 2 Jun 2010 15:12:58 +0000 (+0300) Subject: qt4: use slower and better scaling on albumart-label X-Git-Tag: 1.2.0-pre1~6344 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=0ba54f498eafa5b8c081ff37ecd65d791c3718e9;p=vlc qt4: use slower and better scaling on albumart-label We could use QPixmapCache here too, but I don't think it speeds up it any noticeable way, just makes code littlebit longer. --- diff --git a/modules/gui/qt4/components/interface_widgets.cpp b/modules/gui/qt4/components/interface_widgets.cpp index aec0812c7e..f33bac1c21 100644 --- a/modules/gui/qt4/components/interface_widgets.cpp +++ b/modules/gui/qt4/components/interface_widgets.cpp @@ -593,7 +593,8 @@ void CoverArtLabel::showArtUpdate( const QString& url ) if( !url.isEmpty() && pix.load( url ) ) { pix = pix.scaled( maximumWidth(), maximumHeight(), - Qt::KeepAspectRatioByExpanding ); + Qt::KeepAspectRatioByExpanding, + Qt::SmoothTransformation ); } else {