From 47c8a359c5276062c4bc17f0e82410f29081b502 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:48:06 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- .../protocols/groupwise/libgroupwise/gwfield.cpp | 34 +++++++++++----------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'kopete/protocols/groupwise/libgroupwise/gwfield.cpp') diff --git a/kopete/protocols/groupwise/libgroupwise/gwfield.cpp b/kopete/protocols/groupwise/libgroupwise/gwfield.cpp index e0d3c5db..6d025e47 100644 --- a/kopete/protocols/groupwise/libgroupwise/gwfield.cpp +++ b/kopete/protocols/groupwise/libgroupwise/gwfield.cpp @@ -17,7 +17,7 @@ ************************************************************************* */ -#include +#include #include "gwerror.h" @@ -36,13 +36,13 @@ FieldList::~FieldList() { } -FieldListIterator FieldList::find( QCString tag ) +FieldListIterator FieldList::find( TQCString tag ) { FieldListIterator it = begin(); return find( it, tag ); } -FieldListIterator FieldList::find( FieldListIterator &it, QCString tag ) +FieldListIterator FieldList::find( FieldListIterator &it, TQCString tag ) { FieldListIterator theEnd = end(); //cout << "FieldList::find() looking for " << tag.data() << endl; @@ -55,7 +55,7 @@ FieldListIterator FieldList::find( FieldListIterator &it, QCString tag ) return it; } -int FieldList::findIndex( QCString tag ) +int FieldList::findIndex( TQCString tag ) { FieldListIterator it = begin(); FieldListIterator theEnd = end(); @@ -74,7 +74,7 @@ void FieldList::dump( bool recursive, int offset ) kdDebug( GROUPWISE_DEBUG_LIBGW ) << k_funcinfo << ( recursive ? ", recursively" : ", non-recursive" ) << endl; for( FieldListIterator it = begin(); it != myEnd; ++it ) { - QString s; + TQString s; s.fill(' ', offset*2 ); s.append( (*it)->tag() ); SingleField * sf; @@ -105,13 +105,13 @@ void FieldList::purge() // THIS IS AN ATTEMPT TO HIDE THE POLYMORPHISM INSIDE THE LIST // HOWEVER IT FAILS BECAUSE WE NEED BOTH THE ITERATOR AND THE CASTED Single|MultiField it points to -SingleField * FieldList::findSingleField( QCString tag ) +SingleField * FieldList::findSingleField( TQCString tag ) { FieldListIterator it = begin(); return findSingleField( it, tag ); } -SingleField * FieldList::findSingleField( FieldListIterator &it, QCString tag ) +SingleField * FieldList::findSingleField( FieldListIterator &it, TQCString tag ) { FieldListIterator found = find( it, tag ); if ( found == end() ) @@ -120,13 +120,13 @@ SingleField * FieldList::findSingleField( FieldListIterator &it, QCString tag ) return dynamic_cast( *found ); } -MultiField * FieldList::findMultiField( QCString tag ) +MultiField * FieldList::findMultiField( TQCString tag ) { FieldListIterator it = begin(); return findMultiField( it, tag ); } -MultiField * FieldList::findMultiField( FieldListIterator &it, QCString tag ) +MultiField * FieldList::findMultiField( FieldListIterator &it, TQCString tag ) { FieldListIterator found = find( it, tag ); if ( found == end() ) @@ -138,13 +138,13 @@ MultiField * FieldList::findMultiField( FieldListIterator &it, QCString tag ) /* === FieldBase ========================================================= */ -FieldBase::FieldBase( QCString tag, Q_UINT8 method, Q_UINT8 flags, Q_UINT8 type ) +FieldBase::FieldBase( TQCString tag, Q_UINT8 method, Q_UINT8 flags, Q_UINT8 type ) : m_tag( tag ), m_method( method ), m_flags( flags ), m_type( type ) { } -QCString FieldBase::tag() const +TQCString FieldBase::tag() const { return m_tag; } @@ -171,12 +171,12 @@ void FieldBase::setFlags( const Q_UINT8 flags ) /* === SingleField ========================================================= */ -SingleField::SingleField( QCString tag, Q_UINT8 method, Q_UINT8 flags, Q_UINT8 type, QVariant value ) +SingleField::SingleField( TQCString tag, Q_UINT8 method, Q_UINT8 flags, Q_UINT8 type, TQVariant value ) : FieldBase( tag, method, flags, type ), m_value( value ) { } -SingleField::SingleField( QCString tag, Q_UINT8 flags, Q_UINT8 type, QVariant value ) +SingleField::SingleField( TQCString tag, Q_UINT8 flags, Q_UINT8 type, TQVariant value ) : FieldBase( tag, NMFIELD_METHOD_VALID, flags, type ), m_value( value ) { } @@ -185,24 +185,24 @@ SingleField::~SingleField() { } -void SingleField::setValue( const QVariant v ) +void SingleField::setValue( const TQVariant v ) { m_value = v; } -QVariant SingleField::value() const +TQVariant SingleField::value() const { return m_value; } /* === MultiField ========================================================= */ -MultiField::MultiField( QCString tag, Q_UINT8 method, Q_UINT8 flags, Q_UINT8 type, FieldList fields ) +MultiField::MultiField( TQCString tag, Q_UINT8 method, Q_UINT8 flags, Q_UINT8 type, FieldList fields ) : FieldBase( tag, method, flags, type ), m_fields( fields ) { } -MultiField::MultiField( QCString tag, Q_UINT8 method, Q_UINT8 flags, Q_UINT8 type ) +MultiField::MultiField( TQCString tag, Q_UINT8 method, Q_UINT8 flags, Q_UINT8 type ) : FieldBase( tag, method, flags, type ) { } -- cgit v1.2.1