Decoration: read background pixmap from oxygenrc

This commit is contained in:
Hugo Pereira Da Costa 2011-03-03 10:52:35 +01:00
parent 96c7dedacb
commit e5956f2e9a

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;
}