summaryrefslogtreecommitdiff
authorsandman <sandman>2002-09-27 00:59:52 (UTC)
committer sandman <sandman>2002-09-27 00:59:52 (UTC)
commitac99721b91f3c61d37236932a5d0f6bc09caaa54 (patch) (unidiff)
treee8397c2fd2636452485c5192bbe8166052d08df9
parent6ac98209a82c5aa24ab09faf79525cd9aa5a8a1d (diff)
downloadopie-ac99721b91f3c61d37236932a5d0f6bc09caaa54.zip
opie-ac99721b91f3c61d37236932a5d0f6bc09caaa54.tar.gz
opie-ac99721b91f3c61d37236932a5d0f6bc09caaa54.tar.bz2
- fixed bg image location
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/launcher/launcherview.cpp2
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
@@ -694,25 +694,25 @@ void LauncherView::setBackgroundType( BackgroundType t, const QString &val )
694 icons->setBackgroundColor( val ); 694 icons->setBackgroundColor( val );
695 } 695 }
696 bgName = ""; 696 bgName = "";
697 break; 697 break;
698 698
699 case Image: 699 case Image:
700 bgName = val; 700 bgName = val;
701 if ( bgCache->contains( bgName ) ) { 701 if ( bgCache->contains( bgName ) ) {
702 (*bgCache)[bgName]->ref++; 702 (*bgCache)[bgName]->ref++;
703 icons->setBackgroundPixmap( (*bgCache)[bgName]->pm ); 703 icons->setBackgroundPixmap( (*bgCache)[bgName]->pm );
704 } else { 704 } else {
705 qDebug( "Loading image: %s", val.latin1() ); 705 qDebug( "Loading image: %s", val.latin1() );
706 QPixmap bg( Resource::loadPixmap( "wallpaper/" + val ) ); 706 QPixmap bg( Resource::loadPixmap( val ) );
707 if ( bg.isNull() ) { 707 if ( bg.isNull() ) {
708 QImageIO imgio; 708 QImageIO imgio;
709 imgio.setFileName( bgName ); 709 imgio.setFileName( bgName );
710 QSize ds = qApp->desktop()->size(); 710 QSize ds = qApp->desktop()->size();
711 QString param( "Scale( %1, %2, ScaleMin )" ); // No tr 711 QString param( "Scale( %1, %2, ScaleMin )" ); // No tr
712 imgio.setParameters( param.arg(ds.width()).arg(ds.height()).latin1() ); 712 imgio.setParameters( param.arg(ds.width()).arg(ds.height()).latin1() );
713 imgio.read(); 713 imgio.read();
714 bg = imgio.image(); 714 bg = imgio.image();
715 } 715 }
716 bgCache->insert( bgName, new BgPixmap(bg) ); 716 bgCache->insert( bgName, new BgPixmap(bg) );
717 icons->setBackgroundPixmap( bg ); 717 icons->setBackgroundPixmap( bg );
718 } 718 }