author | sandman <sandman> | 2002-09-27 00:59:52 (UTC) |
---|---|---|
committer | sandman <sandman> | 2002-09-27 00:59:52 (UTC) |
commit | ac99721b91f3c61d37236932a5d0f6bc09caaa54 (patch) (side-by-side diff) | |
tree | e8397c2fd2636452485c5192bbe8166052d08df9 | |
parent | 6ac98209a82c5aa24ab09faf79525cd9aa5a8a1d (diff) | |
download | opie-ac99721b91f3c61d37236932a5d0f6bc09caaa54.zip opie-ac99721b91f3c61d37236932a5d0f6bc09caaa54.tar.gz opie-ac99721b91f3c61d37236932a5d0f6bc09caaa54.tar.bz2 |
- fixed bg image location
-rw-r--r-- | core/launcher/launcherview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/launcher/launcherview.cpp b/core/launcher/launcherview.cpp index 047fe45..c2bde53 100644 --- a/core/launcher/launcherview.cpp +++ b/core/launcher/launcherview.cpp @@ -674,65 +674,65 @@ void LauncherView::setBackgroundType( BackgroundType t, const QString &val ) QPainter painter( &bg ); for ( int i = 0; i < 3; i++ ) { painter.setPen( white ); painter.drawLine( 0, i*3, width()-1, i*3 ); painter.drawLine( 0, i*3+1, width()-1, i*3+1 ); painter.setPen( colorGroup().background().light(105) ); painter.drawLine( 0, i*3+2, width()-1, i*3+2 ); } painter.end(); bgCache->insert( bgName, new BgPixmap(bg) ); } icons->setBackgroundPixmap( bg ); break; } case SolidColor: icons->setBackgroundPixmap( QPixmap() ); if ( val.isEmpty() ) { icons->setBackgroundColor( colorGroup().base() ); } else { icons->setBackgroundColor( val ); } bgName = ""; break; case Image: bgName = val; if ( bgCache->contains( bgName ) ) { (*bgCache)[bgName]->ref++; icons->setBackgroundPixmap( (*bgCache)[bgName]->pm ); } else { qDebug( "Loading image: %s", val.latin1() ); - QPixmap bg( Resource::loadPixmap( "wallpaper/" + val ) ); + QPixmap bg( Resource::loadPixmap( val ) ); if ( bg.isNull() ) { QImageIO imgio; imgio.setFileName( bgName ); QSize ds = qApp->desktop()->size(); QString param( "Scale( %1, %2, ScaleMin )" ); // No tr imgio.setParameters( param.arg(ds.width()).arg(ds.height()).latin1() ); imgio.read(); bg = imgio.image(); } bgCache->insert( bgName, new BgPixmap(bg) ); icons->setBackgroundPixmap( bg ); } break; } // remove unreferenced backgrounds. QMap<QString,BgPixmap*>::Iterator it = bgCache->begin(); while ( it != bgCache->end() ) { QMap<QString,BgPixmap*>::Iterator curr = it; ++it; if ( (*curr)->ref == 0 ) { delete (*curr); bgCache->remove( curr ); } } bgType = t; icons->viewport()->update(); } void LauncherView::setTextColor( const QColor &tc ) { |