From e8cbd42ded042a6282a0be631f1f32de3dd4a77e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Sun, 4 Jan 2009 14:03:29 +0000 Subject: [PATCH] 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 --- effects/cube.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/effects/cube.cpp b/effects/cube.cpp index 5e659a48cc..9298570e54 100644 --- a/effects/cube.cpp +++ b/effects/cube.cpp @@ -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