~neon/juk/master

« back to all changes in this revision

Viewing changes to webimagefetcherdialog.cpp

  • Committer: Michael Pyne
  • Date: 2009-03-02 05:04:15 UTC
  • Revision ID: git-v1:d26b763d93ff648826f0712eb5c3c750d0a484cc
Fix cover art downloading by using KIO async, the way it's meant to be used.  A notification is used to
let the user know when the cover art is actually done downloading.

Also, some minor cleanups.

svn path=/trunk/KDE/kdemultimedia/juk/; revision=933994

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
#include "tag.h"
19
19
 
20
20
#include <kapplication.h>
21
 
#include <kio/netaccess.h>
22
21
#include <kio/job.h>
23
22
#include <klocale.h>
24
23
#include <kdebug.h>
248
247
    QPainter p;
249
248
    QRect targetRect(QPoint(0, 0), iconImage.size());
250
249
    p.begin(&realImage);
 
250
    p.setCompositionMode(QPainter::CompositionMode_Source);
251
251
 
252
252
    // Center thumbnail in 80x80 pixmap
253
253
    targetRect.setWidth(iconImage.width());