Decoration: read background pixmap from oxygenrc
This commit is contained in:
parent
96c7dedacb
commit
e5956f2e9a
1 changed files with 6 additions and 6 deletions
|
@ -52,12 +52,6 @@ namespace Oxygen
|
||||||
{
|
{
|
||||||
readConfig();
|
readConfig();
|
||||||
setInitialized( true );
|
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 )
|
if( changed )
|
||||||
{ helper().setBackgroundPixmapOffset( QPoint( shadowCache().shadowSize(), 0 ) ); }
|
{ helper().setBackgroundPixmapOffset( QPoint( shadowCache().shadowSize(), 0 ) ); }
|
||||||
|
|
||||||
|
// background pixmap
|
||||||
|
{
|
||||||
|
KConfigGroup group( config.group("Common") );
|
||||||
|
helper().setBackgroundPixmap( group.readEntry( "BackgroundPixmap", "" ) );
|
||||||
|
}
|
||||||
|
|
||||||
return changed;
|
return changed;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue