summaryrefslogtreecommitdiffstats
path: root/kparts/genericfactory.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-02-15 19:11:41 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-02-15 19:11:41 +0000
commit374d939d8af431477ce2601815f0ba121b66871c (patch)
treead878478dcc0bedf51e3cffb2ed611ada422b290 /kparts/genericfactory.h
parentf9279733bf71e446933b46f40cbe9c9b9f57b778 (diff)
downloadtdelibs-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/genericfactory.h')
-rw-r--r--kparts/genericfactory.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/kparts/genericfactory.h b/kparts/genericfactory.h
index 99ce7c3be..241943fcb 100644
--- a/kparts/genericfactory.h
+++ b/kparts/genericfactory.h
@@ -111,7 +111,7 @@ namespace KParts
if ( part && !qstrcmp( className, "KParts::ReadOnlyPart" ) )
{
- KParts::ReadWritePart *rwp = dynamic_cast<KParts::ReadWritePart *>( part );
+ KParts::ReadWritePart *rwp = tqt_dynamic_cast<KParts::ReadWritePart *>( part );
if ( rwp )
rwp->setReadWrite( false );
}
@@ -137,11 +137,11 @@ namespace KParts
args );
// (this cast is guaranteed to work...)
- KParts::Part *part = dynamic_cast<KParts::Part *>( object );
+ KParts::Part *part = tqt_dynamic_cast<KParts::Part *>( object );
if ( part && !qstrcmp( className, "KParts::ReadOnlyPart" ) )
{
- KParts::ReadWritePart *rwp = dynamic_cast<KParts::ReadWritePart *>( part );
+ KParts::ReadWritePart *rwp = tqt_dynamic_cast<KParts::ReadWritePart *>( part );
if ( rwp )
rwp->setReadWrite( false );
}