Decoration: read background pixmap from oxygenrc

icc-effect-5.14.5
Hugo Pereira Da Costa 2011-03-03 10:52:35 +01:00
parent 96c7dedacb
commit e5956f2e9a
1 changed files with 6 additions and 6 deletions

View File

@ -52,12 +52,6 @@ namespace Oxygen
{
readConfig();
setInitialized( true );
// background pixmap
QPixmap pixmap;
pixmap.load( "/home/hpereira/Pictures/Wallpapers/window.ornate.png" );
helper().setBackgroundPixmap( pixmap );
}
//___________________________________________________
@ -141,6 +135,12 @@ namespace Oxygen
if( changed )
{ helper().setBackgroundPixmapOffset( QPoint( shadowCache().shadowSize(), 0 ) ); }
// background pixmap
{
KConfigGroup group( config.group("Common") );
helper().setBackgroundPixmap( group.readEntry( "BackgroundPixmap", "" ) );
}
return changed;
}