From ba9755cbdc76d556757b1facb56e1c453f67025b Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 1 Aug 2011 19:21:34 +0000 Subject: [PATCH] Fix kbfx FTBFS under gcc4.6 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kbfx@1244307 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kbfxlib/common/kbfxconfig.cpp | 4 ++-- kbfxlib/common/kbfxplasmapixmapprovider.cpp | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/kbfxlib/common/kbfxconfig.cpp b/kbfxlib/common/kbfxconfig.cpp index 99d60d6..c279a41 100644 --- a/kbfxlib/common/kbfxconfig.cpp +++ b/kbfxlib/common/kbfxconfig.cpp @@ -495,8 +495,8 @@ void KbfxConfig::readThemerc ( TQString &themePath, TQString &themeName, bool us } /* load theme's on and off buttons if any */ - KbfxOnImg = TQPixmap::TQPixmap ( KbfxPlasmaPixmapProvider::PixmapPath ( "on", themePath, themeName ) ); - KbfxOffImg = TQPixmap::TQPixmap ( KbfxPlasmaPixmapProvider::PixmapPath ( "off", themePath, themeName ) ); + KbfxOnImg = TQPixmap ( KbfxPlasmaPixmapProvider::PixmapPath ( "on", themePath, themeName ) ); + KbfxOffImg = TQPixmap ( KbfxPlasmaPixmapProvider::PixmapPath ( "off", themePath, themeName ) ); /* use theme's default dude image if any */ KConfigSkeleton *confskel = new KConfigSkeleton ( TQString::tqfromLatin1 ( "kbfxrc" ) ); diff --git a/kbfxlib/common/kbfxplasmapixmapprovider.cpp b/kbfxlib/common/kbfxplasmapixmapprovider.cpp index 9310362..8107583 100644 --- a/kbfxlib/common/kbfxplasmapixmapprovider.cpp +++ b/kbfxlib/common/kbfxplasmapixmapprovider.cpp @@ -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;