summaryrefslogtreecommitdiffstats
path: root/kabc/vcardformatimpl.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-03 04:12:51 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-03 04:12:51 +0000
commit560378aaca1784ba19806a0414a32b20c744de39 (patch)
treece0dfd7c3febf2a1adc7603d1019a8be2083c415 /kabc/vcardformatimpl.cpp
parentd4d5af1cdbd3cc65d095e0afc5b1f4260091cf5d (diff)
downloadtdelibs-560378aaca1784ba19806a0414a32b20c744de39.tar.gz
tdelibs-560378aaca1784ba19806a0414a32b20c744de39.zip
Automated conversion for enhanced compatibility with TQt for Qt4 3.4.0 TP1
NOTE: This will not compile with Qt4 (yet), however it does compile with Qt3 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1211081 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kabc/vcardformatimpl.cpp')
-rw-r--r--kabc/vcardformatimpl.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/kabc/vcardformatimpl.cpp b/kabc/vcardformatimpl.cpp
index 38d95294c..790f6ebb9 100644
--- a/kabc/vcardformatimpl.cpp
+++ b/kabc/vcardformatimpl.cpp
@@ -123,7 +123,7 @@ bool VCardFormatImpl::loadAddressee( Addressee& addressee, VCARD::VCard &v )
TQCString n = cl->name();
if ( n.left( 2 ) == "X-" ) {
n = n.mid( 2 );
- int posDash = n.find( "-" );
+ int posDash = n.tqfind( "-" );
addressee.insertCustom( TQString::fromUtf8( n.left( posDash ) ),
TQString::fromUtf8( n.mid( posDash + 1 ) ),
TQString::fromUtf8( cl->value()->asString() ) );
@@ -351,8 +351,8 @@ void VCardFormatImpl::addCustomValue( VCARD::VCard *v, const TQString &txt )
if ( txt.isEmpty() ) return;
ContentLine cl;
- cl.setName( "X-" + txt.left( txt.find( ":" ) ).utf8() );
- TQString value = txt.mid( txt.find( ":" ) + 1 );
+ cl.setName( "X-" + txt.left( txt.tqfind( ":" ) ).utf8() );
+ TQString value = txt.mid( txt.tqfind( ":" ) + 1 );
if ( value.isEmpty() )
return;
cl.setValue( new TextValue( value.utf8() ) );
@@ -777,10 +777,10 @@ void VCardFormatImpl::addAgentValue( VCARD::VCard *vcard, const Agent &agent )
Addressee *addr = agent.addressee();
if ( addr ) {
writeToString( (*addr), vstr );
- vstr.replace( ":", "\\:" );
- vstr.replace( ",", "\\," );
- vstr.replace( ";", "\\;" );
- vstr.replace( "\r\n", "\\n" );
+ vstr.tqreplace( ":", "\\:" );
+ vstr.tqreplace( ",", "\\," );
+ vstr.tqreplace( ";", "\\;" );
+ vstr.tqreplace( "\r\n", "\\n" );
cl.setValue( new TextValue( vstr.utf8() ) );
} else
return;
@@ -808,10 +808,10 @@ Agent VCardFormatImpl::readAgentValue( VCARD::ContentLine *cl )
if ( isIntern ) {
TQString vstr = TQString::fromUtf8( v->asString() );
- vstr.replace( "\\n", "\r\n" );
- vstr.replace( "\\:", ":" );
- vstr.replace( "\\,", "," );
- vstr.replace( "\\;", ";" );
+ vstr.tqreplace( "\\n", "\r\n" );
+ vstr.tqreplace( "\\:", ":" );
+ vstr.tqreplace( "\\,", "," );
+ vstr.tqreplace( "\\;", ";" );
Addressee *addr = new Addressee;
readFromString( vstr, *addr );
agent.setAddressee( addr );