Logo Search packages:      
Sourcecode: kmess version File versions

void ThumbnailProvider::generateFallbackImage (  ) 

Generate the fallback image.

This can be called when isSuccessful() returns false. It overwrites the internal image, so it can be requested with getData() and getImage().

Definition at line 137 of file thumbnailprovider.cpp.

References fileName_, size_, and storeImage().

Referenced by FileTransferP2P::userStarted1_gotThumbnailResult().

  QString      iconTitle( KMimeType::iconNameForUrl( KUrl( fileName_ ) ) );
  KIconLoader *loader    = KIconLoader::global();
  QString      iconPath ( loader->iconPath( iconTitle, -size_, false ) );
  storeImage( QImage( iconPath ) );

Generated by  Doxygen 1.6.0   Back to index