diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-02-15 19:11:41 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-02-15 19:11:41 +0000 |
commit | 374d939d8af431477ce2601815f0ba121b66871c (patch) | |
tree | ad878478dcc0bedf51e3cffb2ed611ada422b290 /kparts/componentfactory.h | |
parent | f9279733bf71e446933b46f40cbe9c9b9f57b778 (diff) | |
download | tdelibs-374d939d8af431477ce2601815f0ba121b66871c.tar.gz tdelibs-374d939d8af431477ce2601815f0ba121b66871c.zip |
Allow kdelibs to function correctly with TQt for Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1220926 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kparts/componentfactory.h')
-rw-r--r-- | kparts/componentfactory.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kparts/componentfactory.h b/kparts/componentfactory.h index 80661b191..64feac1c8 100644 --- a/kparts/componentfactory.h +++ b/kparts/componentfactory.h @@ -66,7 +66,7 @@ namespace KParts T::tqstaticMetaObject()->className(), args ); - T *result = dynamic_cast<T *>( static_cast<TQT_BASE_OBJECT_NAME*>(object) ); + T *result = tqt_dynamic_cast<T *>( object ); if ( !result ) delete object; return result; @@ -104,7 +104,7 @@ namespace KParts T::tqstaticMetaObject()->className(), args ); - T *result = dynamic_cast<T *>( object ); + T *result = tqt_dynamic_cast<T *>( object ); if ( !result ) delete object; return result; @@ -178,7 +178,7 @@ namespace KParts *error = ErrNoFactory; return 0; } - KParts::Factory *partFactory = dynamic_cast<KParts::Factory *>( factory ); + KParts::Factory *partFactory = tqt_dynamic_cast<KParts::Factory *>( factory ); if ( !partFactory ) { library->unload(); |