summaryrefslogtreecommitdiffstats
path: root/kpovmodeler/pmprototypemanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kpovmodeler/pmprototypemanager.cpp')
-rw-r--r--kpovmodeler/pmprototypemanager.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/kpovmodeler/pmprototypemanager.cpp b/kpovmodeler/pmprototypemanager.cpp
index ac8f5140..fd02e50b 100644
--- a/kpovmodeler/pmprototypemanager.cpp
+++ b/kpovmodeler/pmprototypemanager.cpp
@@ -147,33 +147,33 @@ void PMPrototypeManager::addPrototype( PMObject* obj )
if( !obj )
return;
- PMMetaObject* metaObject = obj->metaObject( );
- PMMetaObject* m2 = m_metaDict.find( metaObject->className( ) );
+ PMMetaObject* tqmetaObject = obj->tqmetaObject( );
+ PMMetaObject* m2 = m_metaDict.find( tqmetaObject->className( ) );
if( m2 )
{
kdError( PMArea ) << "PMPrototypeManager: Class '"
- << metaObject->className( )
+ << tqmetaObject->className( )
<< "' already registered." << endl;
}
else
{
- if( metaObject->isAbstract( ) )
+ if( tqmetaObject->isAbstract( ) )
kdError( PMArea ) << "PMPrototypeManager: The meta object for the prototype "
- << metaObject->className( )
+ << tqmetaObject->className( )
<< " doesn't have a factory method" << endl;
- m_prototypes.append( metaObject );
- m_lowerCaseDict[metaObject->className( ).lower( )] = metaObject->className( );
+ m_prototypes.append( tqmetaObject );
+ m_lowerCaseDict[tqmetaObject->className( ).lower( )] = tqmetaObject->className( );
// insert the meta object and all super classes into the hash table
- while( metaObject )
+ while( tqmetaObject )
{
- if( m_metaDict.find( metaObject->className( ) ) )
- metaObject = 0;
+ if( m_metaDict.find( tqmetaObject->className( ) ) )
+ tqmetaObject = 0;
else
{
- m_metaDict.insert( metaObject->className( ), metaObject );
- metaObject = metaObject->superClass( );
+ m_metaDict.insert( tqmetaObject->className( ), tqmetaObject );
+ tqmetaObject = tqmetaObject->superClass( );
}
}
}
@@ -184,7 +184,7 @@ void PMPrototypeManager::addDeclarationType( const TQString& className,
const TQString& description,
const TQString& pixmap )
{
- PMMetaObject* m = metaObject( className );
+ PMMetaObject* m = tqmetaObject( className );
if( !m )
kdError( PMArea ) << "PMPrototypeManager::addDeclarationType: Unknown class " << className << endl;
else
@@ -212,7 +212,7 @@ PMObject* PMPrototypeManager::newObject( const TQString& name ) const
return meta->newObject( m_pPart );
}
-PMMetaObject* PMPrototypeManager::metaObject( const TQString& name ) const
+PMMetaObject* PMPrototypeManager::tqmetaObject( const TQString& name ) const
{
if( name.isNull( ) )
return 0;
@@ -222,13 +222,13 @@ PMMetaObject* PMPrototypeManager::metaObject( const TQString& name ) const
bool PMPrototypeManager::isA( const TQString& className,
const TQString& baseClass ) const
{
- return isA( metaObject( className ), baseClass );
+ return isA( tqmetaObject( className ), baseClass );
}
bool PMPrototypeManager::isA( PMMetaObject* c,
const TQString& baseClass ) const
{
- PMMetaObject* bc = metaObject( baseClass );
+ PMMetaObject* bc = tqmetaObject( baseClass );
while( c && c != bc )
c = c->superClass( );
return( c && ( c == bc ) );