diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:56:07 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:56:07 +0000 |
commit | d6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch) | |
tree | d109539636691d7b03036ca1c0ed29dbae6577cf /lib/interfaces/codemodel.cpp | |
parent | 3331a47a9cad24795c7440ee8107143ce444ef34 (diff) | |
download | tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.tar.gz tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'lib/interfaces/codemodel.cpp')
-rw-r--r-- | lib/interfaces/codemodel.cpp | 206 |
1 files changed, 103 insertions, 103 deletions
diff --git a/lib/interfaces/codemodel.cpp b/lib/interfaces/codemodel.cpp index 050abb55..e2e211ad 100644 --- a/lib/interfaces/codemodel.cpp +++ b/lib/interfaces/codemodel.cpp @@ -111,9 +111,9 @@ inline bool isSingleGroup( const int group ) { return (group % 2) == 0; } -QStringList CodeModel::getGroupStrings(int gid) const { - QStringList ret; - for(QMap<QString, FileDom>::ConstIterator it = m_files.begin(); it != m_files.end(); ++it) { +TQStringList CodeModel::getGroupStrings(int gid) const { + TQStringList ret; + for(TQMap<TQString, FileDom>::ConstIterator it = m_files.begin(); it != m_files.end(); ++it) { if((*it)->groupId() == gid) ret.append( (*it)-> name() ); } return ret; @@ -122,7 +122,7 @@ QStringList CodeModel::getGroupStrings(int gid) const { FileList CodeModel::getGroup(int gid) const { FileList ret; - for(QMap<QString, FileDom>::ConstIterator it = m_files.begin(); it != m_files.end(); ++it) { + for(TQMap<TQString, FileDom>::ConstIterator it = m_files.begin(); it != m_files.end(); ++it) { if((*it)->groupId() == gid) ret.append(*it); } return ret; @@ -139,14 +139,14 @@ int CodeModel::mergeGroups( int g1, int g2) { if( isSingleGroup( ng ) ) ng = newGroupId() + 1; - for( QMap<QString, FileDom>::iterator it = m_files.begin(); it != m_files.end(); ++it ) { + for( TQMap<TQString, FileDom>::iterator it = m_files.begin(); it != m_files.end(); ++it ) { if( (*it)->groupId() == g2 || (*it)->groupId() == g1 ) (*it)->setGroupId( ng ); } return ng; } -template<class Type> static void dumpMap( std::ostream& file, QMap<QString, Type>& map ) { - typename QMap<QString, Type>::Iterator it = map.begin(); +template<class Type> static void dumpMap( std::ostream& file, TQMap<TQString, Type>& map ) { + typename TQMap<TQString, Type>::Iterator it = map.begin(); for( ; it != map.end(); ++it) { typename Type::Iterator it2 = (*it).begin(); for( ; it2 != (*it).end(); ++it2) { @@ -155,14 +155,14 @@ template<class Type> static void dumpMap( std::ostream& file, QMap<QString, Type } } -template<class Type> static void dumpMapDirect( std::ostream& file, QMap<QString, Type>& map ) { - typename QMap<QString, Type>::Iterator it = map.begin(); +template<class Type> static void dumpMapDirect( std::ostream& file, TQMap<TQString, Type>& map ) { + typename TQMap<TQString, Type>::Iterator it = map.begin(); for( ; it != map.end(); ++it) { (*it) -> dump( file, true ); } } -void CodeModelItem::dump( std::ostream& file, bool recurse, QString Info ) +void CodeModelItem::dump( std::ostream& file, bool recurse, TQString Info ) { ostringstream str( ostringstream::out ); @@ -195,7 +195,7 @@ void CodeModelItem::dump( std::ostream& file, bool recurse, QString Info ) if(recurse) {} ///just to get rid of the warning } -void ClassModel::dump( std::ostream& file, bool recurse, QString Info ) +void ClassModel::dump( std::ostream& file, bool recurse, TQString Info ) { ostringstream str( ostringstream::out ); @@ -212,27 +212,27 @@ void ClassModel::dump( std::ostream& file, bool recurse, QString Info ) } } -void NamespaceAliasModel::read( QDataStream& stream ) { - QString tempFileName; +void NamespaceAliasModel::read( TQDataStream& stream ) { + TQString tempFileName; stream >> m_name >> m_aliasName >> tempFileName; m_fileName = HashedString( tempFileName ); } -void NamespaceAliasModel::write( QDataStream& stream ) const { +void NamespaceAliasModel::write( TQDataStream& stream ) const { stream << m_name << m_aliasName << m_fileName.str(); } -void NamespaceImportModel::read( QDataStream& stream ) { - QString tempFileName; +void NamespaceImportModel::read( TQDataStream& stream ) { + TQString tempFileName; stream >> m_name >> tempFileName; m_fileName = HashedString( tempFileName ); } -void NamespaceImportModel::write( QDataStream& stream ) const { +void NamespaceImportModel::write( TQDataStream& stream ) const { stream << m_name << m_fileName.str(); } -void NamespaceModel::dump( std::ostream& file, bool recurse, QString Info ) +void NamespaceModel::dump( std::ostream& file, bool recurse, TQString Info ) { ostringstream str( ostringstream::out ); @@ -245,7 +245,7 @@ void NamespaceModel::dump( std::ostream& file, bool recurse, QString Info ) } } -void ArgumentModel::dump( std::ostream& file, bool recurse, QString Info ) +void ArgumentModel::dump( std::ostream& file, bool recurse, TQString Info ) { ostringstream str( ostringstream::out ); @@ -258,7 +258,7 @@ void ArgumentModel::dump( std::ostream& file, bool recurse, QString Info ) if(recurse) {} ///just to get rid of the warning } -void FunctionModel::dump( std::ostream& file, bool recurse, QString Info ) +void FunctionModel::dump( std::ostream& file, bool recurse, TQString Info ) { ostringstream str( ostringstream::out ); @@ -289,7 +289,7 @@ void FunctionModel::dump( std::ostream& file, bool recurse, QString Info ) } } -void VariableModel::dump( std::ostream& file, bool recurse, QString Info ) +void VariableModel::dump( std::ostream& file, bool recurse, TQString Info ) { ostringstream str( ostringstream::out ); @@ -306,20 +306,20 @@ void VariableModel::dump( std::ostream& file, bool recurse, QString Info ) if(recurse) {} ///just to get rid of the warning } -void CodeModel::dump( std::ostream& file, QString Info ) { +void CodeModel::dump( std::ostream& file, TQString Info ) { ostringstream str(ostringstream::out); Info.prepend( str.str().c_str() ); file << Info.ascii() << "\n"; - QMap<QString, FileDom>::iterator it = m_files.begin(); + TQMap<TQString, FileDom>::iterator it = m_files.begin(); for(; it != m_files.end(); ++it) { (*it) -> dump( file, true ); } } -void EnumModel::dump( std::ostream& file, bool recurse, QString Info ) +void EnumModel::dump( std::ostream& file, bool recurse, TQString Info ) { ostringstream str( ostringstream::out ); @@ -334,7 +334,7 @@ void EnumModel::dump( std::ostream& file, bool recurse, QString Info ) } } -void EnumeratorModel::dump( std::ostream& file, bool recurse, QString Info ) +void EnumeratorModel::dump( std::ostream& file, bool recurse, TQString Info ) { ostringstream str( ostringstream::out ); @@ -347,7 +347,7 @@ void EnumeratorModel::dump( std::ostream& file, bool recurse, QString Info ) if(recurse) {} ///just to get rid of the warning } -void TypeAliasModel::dump( std::ostream& file, bool recurse, QString Info ) { +void TypeAliasModel::dump( std::ostream& file, bool recurse, TQString Info ) { ostringstream str( ostringstream::out ); str << "type: " << m_type.ascii() << "\n"; @@ -378,14 +378,14 @@ const FileList CodeModel::fileList( ) const return m_files.values(); } -bool CodeModel::hasFile( const QString & name ) const +bool CodeModel::hasFile( const TQString & name ) const { return m_files.contains( name ); } -FileDom CodeModel::fileByName( const QString & name ) +FileDom CodeModel::fileByName( const TQString & name ) { - QMap<QString, FileDom>::const_iterator it = m_files.find( name ); + TQMap<TQString, FileDom>::const_iterator it = m_files.find( name ); if( it != m_files.end() ) { return *it; } else { @@ -393,9 +393,9 @@ FileDom CodeModel::fileByName( const QString & name ) } } -const FileDom CodeModel::fileByName( const QString & name ) const +const FileDom CodeModel::fileByName( const TQString & name ) const { - QMap<QString, FileDom>::const_iterator it = m_files.find( name ); + TQMap<TQString, FileDom>::const_iterator it = m_files.find( name ); if( it != m_files.end() ) { return *it; } else { @@ -592,12 +592,12 @@ CodeModelItem::~ CodeModelItem( ) { } -QString CodeModelItem::name( ) const +TQString CodeModelItem::name( ) const { return m_name; } -void CodeModelItem::setName( const QString & name ) +void CodeModelItem::setName( const TQString & name ) { m_name = name; } @@ -612,12 +612,12 @@ FileDom CodeModelItem::file( ) return m_model->fileByName( m_fileName ); } -QString CodeModelItem::fileName() const +TQString CodeModelItem::fileName() const { return m_fileName; } -void CodeModelItem::setFileName( const QString& fileName ) +void CodeModelItem::setFileName( const TQString& fileName ) { m_fileName = fileName; } @@ -677,17 +677,17 @@ const NamespaceList NamespaceModel::namespaceList( ) const return m_namespaces.values(); } -NamespaceDom NamespaceModel::namespaceByName( const QString & name ) +NamespaceDom NamespaceModel::namespaceByName( const TQString & name ) { return m_namespaces.contains( name ) ? m_namespaces[ name ] : NamespaceDom(); } -const NamespaceDom NamespaceModel::namespaceByName( const QString & name ) const +const NamespaceDom NamespaceModel::namespaceByName( const TQString & name ) const { return m_namespaces.contains( name ) ? m_namespaces[ name ] : NamespaceDom(); } -bool NamespaceModel::hasNamespace( const QString & name ) const +bool NamespaceModel::hasNamespace( const TQString & name ) const { return m_namespaces.contains( name ); } @@ -718,18 +718,18 @@ ClassModel::ClassModel( CodeModel* model ) { } -QStringList ClassModel::baseClassList( ) const +TQStringList ClassModel::baseClassList( ) const { return m_baseClassList; } -bool ClassModel::addBaseClass( const QString & baseClass ) +bool ClassModel::addBaseClass( const TQString & baseClass ) { m_baseClassList.push_back( baseClass ); return true; } -void ClassModel::removeBaseClass( const QString & baseClass ) +void ClassModel::removeBaseClass( const TQString & baseClass ) { m_baseClassList.remove( baseClass ); } @@ -737,7 +737,7 @@ void ClassModel::removeBaseClass( const QString & baseClass ) ClassList ClassModel::classList( ) { ClassList l; - QMap<QString, ClassList>::Iterator it = m_classes.begin(); + TQMap<TQString, ClassList>::Iterator it = m_classes.begin(); while( it != m_classes.end() ){ l += *it; ++it; @@ -749,7 +749,7 @@ ClassList ClassModel::classList( ) const ClassList ClassModel::classList( ) const { ClassList l; - QMap<QString, ClassList>::ConstIterator it = m_classes.begin(); + TQMap<TQString, ClassList>::ConstIterator it = m_classes.begin(); while( it != m_classes.end() ){ l += *it; ++it; @@ -758,17 +758,17 @@ const ClassList ClassModel::classList( ) const return l; } -bool ClassModel::hasClass( const QString & name ) const +bool ClassModel::hasClass( const TQString & name ) const { return m_classes.contains( name ); } -ClassList ClassModel::classByName( const QString & name ) +ClassList ClassModel::classByName( const TQString & name ) { return m_classes.contains( name ) ? m_classes[ name ] : ClassList(); } -const ClassList ClassModel::classByName( const QString & name ) const +const ClassList ClassModel::classByName( const TQString & name ) const { return m_classes.contains( name ) ? m_classes[ name ] : ClassList(); } @@ -793,7 +793,7 @@ void ClassModel::removeClass( ClassDom klass ) FunctionList ClassModel::functionList( ) { FunctionList l; - QMap<QString, FunctionList>::Iterator it = m_functions.begin(); + TQMap<TQString, FunctionList>::Iterator it = m_functions.begin(); while( it != m_functions.end() ){ l += *it; ++it; @@ -805,7 +805,7 @@ FunctionList ClassModel::functionList( ) const FunctionList ClassModel::functionList( ) const { FunctionList l; - QMap<QString, FunctionList>::ConstIterator it = m_functions.begin(); + TQMap<TQString, FunctionList>::ConstIterator it = m_functions.begin(); while( it != m_functions.end() ){ l += *it; ++it; @@ -814,17 +814,17 @@ const FunctionList ClassModel::functionList( ) const return l; } -bool ClassModel::hasFunction( const QString & name ) const +bool ClassModel::hasFunction( const TQString & name ) const { return m_functions.contains( name ); } -FunctionList ClassModel::functionByName( const QString & name ) +FunctionList ClassModel::functionByName( const TQString & name ) { return m_functions.contains( name ) ? m_functions[ name ] : FunctionList(); } -const FunctionList ClassModel::functionByName( const QString & name ) const +const FunctionList ClassModel::functionByName( const TQString & name ) const { return m_functions.contains( name ) ? m_functions[ name ] : FunctionList(); } @@ -849,7 +849,7 @@ void ClassModel::removeFunction( FunctionDom fun ) FunctionDefinitionList ClassModel::functionDefinitionList( ) { FunctionDefinitionList l; - QMap<QString, FunctionDefinitionList>::Iterator it = m_functionDefinitions.begin(); + TQMap<TQString, FunctionDefinitionList>::Iterator it = m_functionDefinitions.begin(); while( it != m_functionDefinitions.end() ){ l += *it; ++it; @@ -861,7 +861,7 @@ FunctionDefinitionList ClassModel::functionDefinitionList( ) const FunctionDefinitionList ClassModel::functionDefinitionList( ) const { FunctionDefinitionList l; - QMap<QString, FunctionDefinitionList>::ConstIterator it = m_functionDefinitions.begin(); + TQMap<TQString, FunctionDefinitionList>::ConstIterator it = m_functionDefinitions.begin(); while( it != m_functionDefinitions.end() ){ l += *it; ++it; @@ -870,17 +870,17 @@ const FunctionDefinitionList ClassModel::functionDefinitionList( ) const return l; } -bool ClassModel::hasFunctionDefinition( const QString & name ) const +bool ClassModel::hasFunctionDefinition( const TQString & name ) const { return m_functionDefinitions.contains( name ); } -FunctionDefinitionList ClassModel::functionDefinitionByName( const QString & name ) +FunctionDefinitionList ClassModel::functionDefinitionByName( const TQString & name ) { return m_functionDefinitions.contains( name ) ? m_functionDefinitions[ name ] : FunctionDefinitionList(); } -const FunctionDefinitionList ClassModel::functionDefinitionByName( const QString & name ) const +const FunctionDefinitionList ClassModel::functionDefinitionByName( const TQString & name ) const { return m_functionDefinitions.contains( name ) ? m_functionDefinitions[ name ] : FunctionDefinitionList(); } @@ -912,17 +912,17 @@ const VariableList ClassModel::variableList( ) const return m_variables.values(); } -VariableDom ClassModel::variableByName( const QString & name ) +VariableDom ClassModel::variableByName( const TQString & name ) { return m_variables.contains( name ) ? m_variables[ name ] : VariableDom(); } -const VariableDom ClassModel::variableByName( const QString & name ) const +const VariableDom ClassModel::variableByName( const TQString & name ) const { return m_variables.contains( name ) ? m_variables[ name ] : VariableDom(); } -bool ClassModel::hasVariable( const QString & name ) const +bool ClassModel::hasVariable( const TQString & name ) const { return m_variables.contains( name ); } @@ -951,17 +951,17 @@ const EnumList ClassModel::enumList( ) const return m_enumerators.values(); } -EnumDom ClassModel::enumByName( const QString & name ) +EnumDom ClassModel::enumByName( const TQString & name ) { return m_enumerators.contains( name ) ? m_enumerators[ name ] : EnumDom(); } -const EnumDom ClassModel::enumByName( const QString & name ) const +const EnumDom ClassModel::enumByName( const TQString & name ) const { return m_enumerators.contains( name ) ? m_enumerators[ name ] : EnumDom(); } -bool ClassModel::hasEnum( const QString & name ) const +bool ClassModel::hasEnum( const TQString & name ) const { return m_enumerators.contains( name ); } @@ -1005,7 +1005,7 @@ void ClassModel::removeEnum( EnumDom e ) TypeAliasList ClassModel::typeAliasList( ) { TypeAliasList l; - QMap<QString, TypeAliasList>::Iterator it = m_typeAliases.begin(); + TQMap<TQString, TypeAliasList>::Iterator it = m_typeAliases.begin(); while( it != m_typeAliases.end() ){ l += *it; ++it; @@ -1017,7 +1017,7 @@ TypeAliasList ClassModel::typeAliasList( ) const TypeAliasList ClassModel::typeAliasList( ) const { TypeAliasList l; - QMap<QString, TypeAliasList>::ConstIterator it = m_typeAliases.begin(); + TQMap<TQString, TypeAliasList>::ConstIterator it = m_typeAliases.begin(); while( it != m_typeAliases.end() ){ l += *it; ++it; @@ -1026,17 +1026,17 @@ const TypeAliasList ClassModel::typeAliasList( ) const return l; } -bool ClassModel::hasTypeAlias( const QString & name ) const +bool ClassModel::hasTypeAlias( const TQString & name ) const { return m_typeAliases.contains( name ); } -TypeAliasList ClassModel::typeAliasByName( const QString & name ) +TypeAliasList ClassModel::typeAliasByName( const TQString & name ) { return m_typeAliases.contains( name ) ? m_typeAliases[ name ] : TypeAliasList(); } -const TypeAliasList ClassModel::typeAliasByName( const QString & name ) const +const TypeAliasList ClassModel::typeAliasByName( const TQString & name ) const { return m_typeAliases.contains( name ) ? m_typeAliases[ name ] : TypeAliasList(); } @@ -1066,22 +1066,22 @@ ArgumentModel::ArgumentModel( CodeModel* model ) { } -QString ArgumentModel::type( ) const +TQString ArgumentModel::type( ) const { return m_type; } -void ArgumentModel::setType( const QString& type ) +void ArgumentModel::setType( const TQString& type ) { m_type = type; } -QString ArgumentModel::defaultValue( ) const +TQString ArgumentModel::defaultValue( ) const { return m_defaultValue; } -void ArgumentModel::setDefaultValue( const QString & defaultValue ) +void ArgumentModel::setDefaultValue( const TQString & defaultValue ) { m_defaultValue = defaultValue; } @@ -1150,12 +1150,12 @@ void FunctionModel::setAbstract( bool isAbstract ) d.v.m_abstract = isAbstract; } -QString FunctionModel::resultType( ) const +TQString FunctionModel::resultType( ) const { return m_resultType; } -void FunctionModel::setResultType( const QString& type ) +void FunctionModel::setResultType( const TQString& type ) { m_resultType = type; } @@ -1214,12 +1214,12 @@ void VariableModel::setStatic( bool isStatic ) m_static = isStatic; } -QString VariableModel::type( ) const +TQString VariableModel::type( ) const { return m_type; } -void VariableModel::setType( const QString& type ) +void VariableModel::setType( const TQString& type ) { m_type = type; } @@ -1282,7 +1282,7 @@ const NamespaceDom CodeModel::globalNamespace( ) const return m_globalNamespace; } -void CodeModelItem::read( QDataStream & stream ) +void CodeModelItem::read( TQDataStream & stream ) { stream >> m_kind @@ -1301,7 +1301,7 @@ void CodeModelItem::read( QDataStream & stream ) } } -void CodeModelItem::write( QDataStream & stream ) const +void CodeModelItem::write( TQDataStream & stream ) const { stream << m_kind @@ -1319,7 +1319,7 @@ void CodeModelItem::write( QDataStream & stream ) const } } -void ClassModel::read( QDataStream & stream ) +void ClassModel::read( TQDataStream & stream ) { CodeModelItem::read( stream ); @@ -1378,7 +1378,7 @@ void ClassModel::read( QDataStream & stream ) } } -void ClassModel::write( QDataStream & stream ) const +void ClassModel::write( TQDataStream & stream ) const { CodeModelItem::write( stream ); @@ -1418,7 +1418,7 @@ void ClassModel::write( QDataStream & stream ) const } -void NamespaceModel::read( QDataStream & stream ) +void NamespaceModel::read( TQDataStream & stream ) { ClassModel::read( stream ); @@ -1462,7 +1462,7 @@ void NamespaceModel::removeNamespaceAlias( const NamespaceAliasModel& alias ) { m_namespaceAliases.erase( alias ); } -void NamespaceModel::write( QDataStream & stream ) const +void NamespaceModel::write( TQDataStream & stream ) const { ClassModel::write( stream ); @@ -1523,7 +1523,7 @@ void NamespaceModel::update( const NamespaceModel* ns ) eachUpdateSingle( m_namespaces, ns->m_namespaces ); } -void FileModel::read( QDataStream & stream ) +void FileModel::read( TQDataStream & stream ) { stream >> m_groupId; bool b; @@ -1542,7 +1542,7 @@ void FileModel::read( QDataStream & stream ) NamespaceModel::read( stream ); } -void FileModel::write( QDataStream & stream ) const +void FileModel::write( TQDataStream & stream ) const { stream << m_groupId; bool b = m_parseResult; @@ -1556,7 +1556,7 @@ void FileModel::write( QDataStream & stream ) const NamespaceModel::write( stream ); } -void ArgumentModel::read( QDataStream & stream ) +void ArgumentModel::read( TQDataStream & stream ) { CodeModelItem::read( stream ); @@ -1564,14 +1564,14 @@ void ArgumentModel::read( QDataStream & stream ) stream >> m_type >> m_defaultValue; } -void ArgumentModel::write( QDataStream & stream ) const +void ArgumentModel::write( TQDataStream & stream ) const { CodeModelItem::write( stream ); stream << m_type << m_defaultValue; } -void FunctionModel::read( QDataStream & stream ) +void FunctionModel::read( TQDataStream & stream ) { CodeModelItem::read( stream ); TemplateModelItem::read( stream ); @@ -1593,7 +1593,7 @@ void FunctionModel::read( QDataStream & stream ) >> m_resultType; } -void FunctionModel::write( QDataStream & stream ) const +void FunctionModel::write( TQDataStream & stream ) const { CodeModelItem::write( stream ); TemplateModelItem::write( stream ); @@ -1610,7 +1610,7 @@ void FunctionModel::write( QDataStream & stream ) const << m_resultType; } -void CodeModel::read( QDataStream & stream ) +void CodeModel::read( TQDataStream & stream ) { int n; @@ -1624,7 +1624,7 @@ void CodeModel::read( QDataStream & stream ) } } -void CodeModel::write( QDataStream & stream ) const +void CodeModel::write( TQDataStream & stream ) const { const FileList file_list = fileList(); stream << int( file_list.size() ); @@ -1632,13 +1632,13 @@ void CodeModel::write( QDataStream & stream ) const (*it)->write( stream ); } -void VariableModel::read( QDataStream & stream ) +void VariableModel::read( TQDataStream & stream ) { CodeModelItem::read( stream ); stream >> m_access >> m_static >> m_type >> m_isEnumeratorVariable; } -void VariableModel::write( QDataStream & stream ) const +void VariableModel::write( TQDataStream & stream ) const { CodeModelItem::write( stream ); stream << m_access << m_static << m_type << m_isEnumeratorVariable; @@ -1688,7 +1688,7 @@ void EnumModel::addEnumerator( EnumeratorDom enumerator ) m_enumerators.insert( enumerator->name(), enumerator ); } -void EnumModel::read( QDataStream & stream ) +void EnumModel::read( TQDataStream & stream ) { CodeModelItem::read( stream ); stream >> m_access; @@ -1702,7 +1702,7 @@ void EnumModel::read( QDataStream & stream ) } } -void EnumModel::write( QDataStream & stream ) const +void EnumModel::write( TQDataStream & stream ) const { CodeModelItem::write( stream ); @@ -1718,23 +1718,23 @@ EnumeratorModel::EnumeratorModel( CodeModel * model ) { } -QString EnumeratorModel::value( ) const +TQString EnumeratorModel::value( ) const { return m_value; } -void EnumeratorModel::setValue( const QString & value ) +void EnumeratorModel::setValue( const TQString & value ) { m_value = value; } -void EnumeratorModel::read( QDataStream & stream ) +void EnumeratorModel::read( TQDataStream & stream ) { CodeModelItem::read( stream ); stream >> m_value; } -void EnumeratorModel::write( QDataStream & stream ) const +void EnumeratorModel::write( TQDataStream & stream ) const { CodeModelItem::write( stream ); stream << m_value; @@ -1765,26 +1765,26 @@ TypeAliasModel::TypeAliasModel( CodeModel * model ) { } -void TypeAliasModel::read( QDataStream & stream ) +void TypeAliasModel::read( TQDataStream & stream ) { CodeModelItem::read( stream ); stream >> m_type; } -void TypeAliasModel::write( QDataStream & stream ) const +void TypeAliasModel::write( TQDataStream & stream ) const { CodeModelItem::write( stream ); stream << m_type; } -QString TypeAliasModel::type( ) const +TQString TypeAliasModel::type( ) const { return m_type; } -void TypeAliasModel::setType( const QString & type ) +void TypeAliasModel::setType( const TQString & type ) { m_type = type; } @@ -1809,8 +1809,8 @@ FileList FileModel::wholeGroup() { return codeModel()->getGroup( m_groupId ); } -QStringList FileModel::wholeGroupStrings() const { - if( isSingleGroup( m_groupId ) ) return (QStringList() << name() ); +TQStringList FileModel::wholeGroupStrings() const { + if( isSingleGroup( m_groupId ) ) return (TQStringList() << name() ); return codeModel()->getGroupStrings( m_groupId ); } |