diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-02 19:23:46 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-02 19:23:46 +0000 |
commit | eba47f8f0637f451e21348187591e1f1fd58ac74 (patch) | |
tree | 448f10b95c656604acc331a3236c1e59bde5c1ad /kpovmodeler/pmsymboltable.cpp | |
parent | c7e8736c69373f48b0401319757c742e8607431a (diff) | |
download | tdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.tar.gz tdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.zip |
TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1158446 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kpovmodeler/pmsymboltable.cpp')
-rw-r--r-- | kpovmodeler/pmsymboltable.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/kpovmodeler/pmsymboltable.cpp b/kpovmodeler/pmsymboltable.cpp index bd1aab3b..e8a15c3d 100644 --- a/kpovmodeler/pmsymboltable.cpp +++ b/kpovmodeler/pmsymboltable.cpp @@ -21,7 +21,7 @@ #include <string.h> -PMSymbol::PMSymbol( const QString& id, PMDeclare* o ) +PMSymbol::PMSymbol( const TQString& id, PMDeclare* o ) { setId( id ); m_type = Object; @@ -30,7 +30,7 @@ PMSymbol::PMSymbol( const QString& id, PMDeclare* o ) m_pRenamedSymbol = 0; } -PMSymbol::PMSymbol( const QString& id, const PMValue& v ) +PMSymbol::PMSymbol( const TQString& id, const PMValue& v ) { setId( id ); m_type = Value; @@ -45,7 +45,7 @@ PMSymbol::~PMSymbol( ) delete m_pVal; } -void PMSymbol::setId( const QString& id ) +void PMSymbol::setId( const TQString& id ) { m_id = id.left( MaxIDLength ); } @@ -68,7 +68,7 @@ PMValue PMSymbol::value( ) const PMSymbolTable::PMSymbolTable( ) - : QDict<PMSymbol>( 1009 ), m_lastID( 47 ) + : TQDict<PMSymbol>( 1009 ), m_lastID( 47 ) { setAutoDelete( true ); m_lastID.setAutoDelete( true ); @@ -79,10 +79,10 @@ PMSymbolTable::~PMSymbolTable( ) clear( ); } -QString PMSymbolTable::findNewID( const QString& prefix ) +TQString PMSymbolTable::findNewID( const TQString& prefix ) { PMSymbol* symbol; - QString testID; + TQString testID; unsigned int number; int* lastNumber = m_lastID.find( prefix ); @@ -94,7 +94,7 @@ QString PMSymbolTable::findNewID( const QString& prefix ) // find next free id do { - testID = prefix + QString( "%1" ).arg( number ); + testID = prefix + TQString( "%1" ).arg( number ); symbol = find( testID ); if( symbol ) number++; @@ -109,9 +109,9 @@ QString PMSymbolTable::findNewID( const QString& prefix ) return testID; } -PMSymbol* PMSymbolTable::findNewID( const QString& prefix, PMDeclare* obj ) +PMSymbol* PMSymbolTable::findNewID( const TQString& prefix, PMDeclare* obj ) { - QString newID = findNewID( prefix ); + TQString newID = findNewID( prefix ); obj->setID( newID ); PMSymbol* s = new PMSymbol( newID, obj ); |