Commit e8cbd42d authored by Martin Flöser's avatar Martin Flöser
Browse files

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
parent fb1d569c
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment