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:
parent
fb1d569c49
commit
e8cbd42ded
1 changed files with 2 additions and 1 deletions
|
@ -137,7 +137,8 @@ void CubeEffect::loadConfig( QString config )
|
||||||
texturedCaps = conf.readEntry( "TexturedCaps", true );
|
texturedCaps = conf.readEntry( "TexturedCaps", true );
|
||||||
if( texturedCaps )
|
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() )
|
if( !img.isNull() )
|
||||||
{
|
{
|
||||||
// change the alpha value of each pixel
|
// change the alpha value of each pixel
|
||||||
|
|
Loading…
Reference in a new issue