|
|
|
@ -41,7 +41,7 @@ KbfxPlasmaPixmapProvider::PixmapPath ( TQString pixmapName )
|
|
|
|
|
{
|
|
|
|
|
TQString lFileName = ConfigInit ().m_SpinxThemeBasePath + ConfigInit ().m_SpinxThemeName + "/" + pixmapName + ".png";
|
|
|
|
|
|
|
|
|
|
if ( TQPixmap::TQPixmap ( lFileName ).isNull() )
|
|
|
|
|
if ( TQPixmap ( lFileName ).isNull() )
|
|
|
|
|
lFileName = locate ( "data", "kbfx/skins/default/" + pixmapName + ".png" );
|
|
|
|
|
|
|
|
|
|
return lFileName;
|
|
|
|
@ -52,7 +52,7 @@ KbfxPlasmaPixmapProvider::PixmapPath ( TQString pixmapName, TQString themePath,
|
|
|
|
|
{
|
|
|
|
|
TQString lFileName = themePath + themeName + "/" + pixmapName + ".png";
|
|
|
|
|
|
|
|
|
|
if ( TQPixmap::TQPixmap ( lFileName ).isNull() )
|
|
|
|
|
if ( TQPixmap ( lFileName ).isNull() )
|
|
|
|
|
lFileName = locate ( "data", "kbfx/skins/default/" + pixmapName + ".png" );
|
|
|
|
|
|
|
|
|
|
return lFileName;
|
|
|
|
@ -61,7 +61,7 @@ KbfxPlasmaPixmapProvider::PixmapPath ( TQString pixmapName, TQString themePath,
|
|
|
|
|
bool
|
|
|
|
|
KbfxPlasmaPixmapProvider::PixmapPathCheck ( TQString pixmapPath )
|
|
|
|
|
{
|
|
|
|
|
if ( TQPixmap::TQPixmap ( pixmapPath ).isNull() )
|
|
|
|
|
if ( TQPixmap ( pixmapPath ).isNull() )
|
|
|
|
|
return FALSE;
|
|
|
|
|
|
|
|
|
|
return TRUE;
|
|
|
|
|