Read path to cube cap image from kwinrc. This is needed for an easy branding by distros.

svn path=/trunk/KDE/kdebase/workspace/; revision=905512
This commit is contained in:
Martin Gräßlin 2009-01-04 14:03:29 +00:00
parent fb1d569c49
commit e8cbd42ded

View file

@ -137,7 +137,8 @@ void CubeEffect::loadConfig( QString config )
texturedCaps = conf.readEntry( "TexturedCaps", true );
if( texturedCaps )
{
QImage img = QImage( KGlobal::dirs()->findResource( "appdata", "cubecap.png" ) );
QString capPath = conf.readEntry( "CapPath", KGlobal::dirs()->findResource( "appdata", "cubecap.png" ) );
QImage img = QImage( capPath );
if( !img.isNull() )
{
// change the alpha value of each pixel