-rw-r--r-- | library/applnk.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/library/applnk.cpp b/library/applnk.cpp index 80f2c62..c82d3b9 100644 --- a/library/applnk.cpp +++ b/library/applnk.cpp | |||
@@ -465,28 +465,30 @@ const QPixmap& AppLnk::pixmap( int pos, int size ) const { | |||
465 | MimeType mt(type()); | 465 | MimeType mt(type()); |
466 | that->d->mPixmaps[pos] = pos ? mt.bigPixmap() : mt.pixmap(); | 466 | that->d->mPixmaps[pos] = pos ? mt.bigPixmap() : mt.pixmap(); |
467 | if ( that->d->mPixmaps[pos].isNull() ) | 467 | if ( that->d->mPixmaps[pos].isNull() ) |
468 | that->d->mPixmaps[pos].convertFromImage( | 468 | that->d->mPixmaps[pos].convertFromImage( |
469 | Resource::loadImage("UnknownDocument") | 469 | Resource::loadImage("UnknownDocument") |
470 | .smoothScale( size, size ) ); | 470 | .smoothScale( size, size ) ); |
471 | return that->d->mPixmaps[pos]; | 471 | return that->d->mPixmaps[pos]; |
472 | } | 472 | } |
473 | |||
473 | QImage unscaledIcon = Resource::loadImage( that->mIconFile ); | 474 | QImage unscaledIcon = Resource::loadImage( that->mIconFile ); |
474 | if ( unscaledIcon.isNull() ) { | 475 | if ( unscaledIcon.isNull() ) { |
475 | // qDebug( "Cannot find icon: %s", that->mIconFile.latin1() ); | 476 | // qDebug( "Cannot find icon: %s", that->mIconFile.latin1() ); |
476 | that->d->mPixmaps[pos].convertFromImage( | 477 | that->d->mPixmaps[pos].convertFromImage( |
477 | Resource::loadImage("UnknownDocument") | 478 | Resource::loadImage("UnknownDocument") |
478 | .smoothScale( size, size ) ); | 479 | .smoothScale( size, size ) ); |
479 | } else { | 480 | } else { |
480 | that->d->mPixmaps[0].convertFromImage( unscaledIcon.smoothScale( smallSize, smallSize ) ); | 481 | that->d->mPixmaps[0].convertFromImage( unscaledIcon.smoothScale( smallSize, smallSize ) ); |
481 | that->d->mPixmaps[1].convertFromImage( unscaledIcon.smoothScale( bigSize, bigSize ) ); | 482 | that->d->mPixmaps[1].convertFromImage( unscaledIcon.smoothScale( bigSize, bigSize ) ); |
482 | } | 483 | } |
483 | return that->d->mPixmaps[pos]; | 484 | return that->d->mPixmaps[pos]; |
484 | } | 485 | } |
486 | |||
485 | return d->mPixmaps[pos]; | 487 | return d->mPixmaps[pos]; |
486 | } | 488 | } |
487 | 489 | ||
488 | /*! | 490 | /*! |
489 | Returns a small pixmap associated with the application. | 491 | Returns a small pixmap associated with the application. |
490 | 492 | ||
491 | \sa bigPixmap() setIcon() | 493 | \sa bigPixmap() setIcon() |
492 | */ | 494 | */ |