summaryrefslogtreecommitdiffstats
path: root/tdeparts
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-11-18 16:44:23 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-11-18 16:58:12 +0900
commit57e0ed66347db15cb1cd66488f095107e7772ad9 (patch)
treeaed23e1b51b285cf2ca9417fea697a7c2e52e700 /tdeparts
parentc8ece3630d4d21acaf1749fc2cf660a0463070c3 (diff)
downloadtdelibs-57e0ed66347db15cb1cd66488f095107e7772ad9.tar.gz
tdelibs-57e0ed66347db15cb1cd66488f095107e7772ad9.zip
Replace various strings '#define'd in tqtinterface
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'tdeparts')
-rw-r--r--tdeparts/componentfactory.h6
-rw-r--r--tdeparts/factory.cpp2
-rw-r--r--tdeparts/genericfactory.h6
-rw-r--r--tdeparts/statusbarextension.cpp2
4 files changed, 8 insertions, 8 deletions
diff --git a/tdeparts/componentfactory.h b/tdeparts/componentfactory.h
index 728b34efa..c0b8068f9 100644
--- a/tdeparts/componentfactory.h
+++ b/tdeparts/componentfactory.h
@@ -66,7 +66,7 @@ namespace KParts
T::staticMetaObject()->className(),
args );
- T *result = tqt_dynamic_cast<T *>( object );
+ T *result = dynamic_cast<T *>( object );
if ( !result )
delete object;
return result;
@@ -104,7 +104,7 @@ namespace KParts
T::staticMetaObject()->className(),
args );
- T *result = tqt_dynamic_cast<T *>( object );
+ T *result = dynamic_cast<T *>( object );
if ( !result )
delete object;
return result;
@@ -178,7 +178,7 @@ namespace KParts
*error = ErrNoFactory;
return 0;
}
- KParts::Factory *partFactory = tqt_dynamic_cast<KParts::Factory *>( factory );
+ KParts::Factory *partFactory = dynamic_cast<KParts::Factory *>( factory );
if ( !partFactory )
{
library->unload();
diff --git a/tdeparts/factory.cpp b/tdeparts/factory.cpp
index 485bd9a36..ce758288b 100644
--- a/tdeparts/factory.cpp
+++ b/tdeparts/factory.cpp
@@ -63,7 +63,7 @@ const TDEInstance *Factory::partInstanceFromLibrary( const TQCString &libraryNam
KLibFactory *factory = library->factory();
if ( !factory )
return 0;
- KParts::Factory *pfactory = tqt_dynamic_cast<KParts::Factory *>( factory );
+ KParts::Factory *pfactory = dynamic_cast<KParts::Factory *>( factory );
if ( !pfactory )
return 0;
return pfactory->partInstance();
diff --git a/tdeparts/genericfactory.h b/tdeparts/genericfactory.h
index 27e76a753..0ecc72e4e 100644
--- a/tdeparts/genericfactory.h
+++ b/tdeparts/genericfactory.h
@@ -111,7 +111,7 @@ namespace KParts
if ( part && !qstrcmp( className, "KParts::ReadOnlyPart" ) )
{
- KParts::ReadWritePart *rwp = tqt_dynamic_cast<KParts::ReadWritePart *>( part );
+ KParts::ReadWritePart *rwp = 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 = tqt_dynamic_cast<KParts::Part *>( object );
+ KParts::Part *part = dynamic_cast<KParts::Part *>( object );
if ( part && !qstrcmp( className, "KParts::ReadOnlyPart" ) )
{
- KParts::ReadWritePart *rwp = tqt_dynamic_cast<KParts::ReadWritePart *>( part );
+ KParts::ReadWritePart *rwp = dynamic_cast<KParts::ReadWritePart *>( part );
if ( rwp )
rwp->setReadWrite( false );
}
diff --git a/tdeparts/statusbarextension.cpp b/tdeparts/statusbarextension.cpp
index f8e15b061..353ec733c 100644
--- a/tdeparts/statusbarextension.cpp
+++ b/tdeparts/statusbarextension.cpp
@@ -135,7 +135,7 @@ KStatusBar * StatusBarExtension::statusBar() const
{
if ( !m_statusBar ) {
TQWidget* w = static_cast<KParts::ReadOnlyPart*>(parent())->widget();
- TDEMainWindow* mw = tqt_dynamic_cast<TDEMainWindow *>( w->topLevelWidget() );
+ TDEMainWindow* mw = dynamic_cast<TDEMainWindow *>( w->topLevelWidget() );
if ( mw )
m_statusBar = mw->statusBar();
}