|
|
|
@ -1782,7 +1782,7 @@ CollectionDB::createDragPixmap( const KURL::List &urls, TQString textOverRide )
|
|
|
|
|
coverPm[i] = coverPm[i-1];
|
|
|
|
|
|
|
|
|
|
TQImage im( locate( "data","amarok/images/more_albums.png" ) );
|
|
|
|
|
coverPm[0].convertFromImage( im.smoothScale( coverW, coverH, TQ_ScaleMin ) );
|
|
|
|
|
coverPm[0].convertFromImage( im.smoothScale( coverW, coverH, TQImage::ScaleMin ) );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pixmapH = coverPm[0].height();
|
|
|
|
@ -2131,7 +2131,7 @@ CollectionDB::findAmazonImage( const TQString &artist, const TQString &album, ui
|
|
|
|
|
if ( width > 1 )
|
|
|
|
|
{
|
|
|
|
|
TQImage img( imageDir.filePath( key ) );
|
|
|
|
|
img.smoothScale( width, width, TQ_ScaleMin ).save( cacheCoverDir().filePath( widthKey + key ), "PNG" );
|
|
|
|
|
img.smoothScale( width, width, TQImage::ScaleMin ).save( cacheCoverDir().filePath( widthKey + key ), "PNG" );
|
|
|
|
|
|
|
|
|
|
return cacheCoverDir().filePath( widthKey + key );
|
|
|
|
|
}
|
|
|
|
@ -2207,7 +2207,7 @@ CollectionDB::findDirectoryImage( const TQString& artist, const TQString& album,
|
|
|
|
|
if ( !TQFile::exists( path ) )
|
|
|
|
|
{
|
|
|
|
|
TQImage img( image );
|
|
|
|
|
img.smoothScale( width, width, TQ_ScaleMin ).save( path, "PNG" );
|
|
|
|
|
img.smoothScale( width, width, TQImage::ScaleMin ).save( path, "PNG" );
|
|
|
|
|
}
|
|
|
|
|
return path;
|
|
|
|
|
}
|
|
|
|
@ -2373,7 +2373,7 @@ CollectionDB::notAvailCover( const bool withShadow, int width )
|
|
|
|
|
s = cacheCoverDir().filePath( widthKey + "nocover.png" );
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
m_noCover.smoothScale( width, width, TQ_ScaleMin ).save( cacheCoverDir().filePath( widthKey + "nocover.png" ), "PNG" );
|
|
|
|
|
m_noCover.smoothScale( width, width, TQImage::ScaleMin ).save( cacheCoverDir().filePath( widthKey + "nocover.png" ), "PNG" );
|
|
|
|
|
s = cacheCoverDir().filePath( widthKey + "nocover.png" );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -5856,7 +5856,7 @@ CollectionDB::loadHashFile( const TQCString& hash, uint width )
|
|
|
|
|
} else if ( TQFileInfo( full ).isReadable() ) {
|
|
|
|
|
//debug() << "loadHashFile: scaling: " << full << endl;
|
|
|
|
|
TQImage image( full );
|
|
|
|
|
if ( image.smoothScale( width, width, TQ_ScaleMin ).save( path, "PNG" ) ) {
|
|
|
|
|
if ( image.smoothScale( width, width, TQImage::ScaleMin ).save( path, "PNG" ) ) {
|
|
|
|
|
//debug() << "loadHashFile: scaled: " << path << endl;
|
|
|
|
|
return path;
|
|
|
|
|
}
|
|
|
|
|