summaryrefslogtreecommitdiffstats
path: root/libkdepim/addresseeview.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
commit4c6f8d69e2d1501837affb472c4eb8fec4462240 (patch)
tree766a8ad7939fcf3eec534184c36bd0e0f80489e2 /libkdepim/addresseeview.cpp
parent469cc56a805bd3d6940d54adbef554877c29853c (diff)
downloadtdepim-4c6f8d69e2d1501837affb472c4eb8fec4462240.tar.gz
tdepim-4c6f8d69e2d1501837affb472c4eb8fec4462240.zip
rename the following methods:
tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libkdepim/addresseeview.cpp')
-rw-r--r--libkdepim/addresseeview.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/libkdepim/addresseeview.cpp b/libkdepim/addresseeview.cpp
index f291e4e1d..82f0305e1 100644
--- a/libkdepim/addresseeview.cpp
+++ b/libkdepim/addresseeview.cpp
@@ -238,11 +238,11 @@ TQString AddresseeView::vCardAsHTML( const KABC::Addressee& addr, ::KIMProxy *pr
smsURL = TQString(" (<a href=\"sms:%1\">%2</a>)" ).tqarg( number ).tqarg( i18n( "SMS") );
dynamicPart += rowFmtStr
- .tqarg( (*phoneIt).typeLabel().tqreplace( " ", "&nbsp;" ) )
+ .tqarg( (*phoneIt).typeLabel().replace( " ", "&nbsp;" ) )
.tqarg( TQString::tqfromLatin1( "<a href=\"%1\">%2</a>%3" ).tqarg( url ).tqarg( number ).tqarg( smsURL ) );
} else {
dynamicPart += rowFmtStr
- .tqarg( (*phoneIt).typeLabel().tqreplace( " ", "&nbsp;" ) )
+ .tqarg( (*phoneIt).typeLabel().replace( " ", "&nbsp;" ) )
.tqarg( number );
}
}
@@ -296,7 +296,7 @@ TQString AddresseeView::vCardAsHTML( const KABC::Addressee& addr, ::KIMProxy *pr
TQString formattedAddress;
formattedAddress = TQStyleSheet::escape( (*addrIt).formattedAddress().stripWhiteSpace() );
- formattedAddress = formattedAddress.tqreplace( '\n', "<br>" );
+ formattedAddress = formattedAddress.replace( '\n', "<br>" );
TQString link = "<a href=\"addr:" + (*addrIt).id() + "\">" +
formattedAddress + "</a>";
@@ -312,7 +312,7 @@ TQString AddresseeView::vCardAsHTML( const KABC::Addressee& addr, ::KIMProxy *pr
}
} else {
TQString link = "<a href=\"addr:" + (*addrIt).id() + "\">" +
- (*addrIt).label().tqreplace( '\n', "<br>" ) + "</a>";
+ (*addrIt).label().replace( '\n', "<br>" ) + "</a>";
if ( linkMask & AddressLinks ) {
dynamicPart += rowFmtStr
@@ -321,7 +321,7 @@ TQString AddresseeView::vCardAsHTML( const KABC::Addressee& addr, ::KIMProxy *pr
} else {
dynamicPart += rowFmtStr
.tqarg( KABC::Address::typeLabel( (*addrIt).type() ) )
- .tqarg( (*addrIt).label().tqreplace( '\n', "<br>" ) );
+ .tqarg( (*addrIt).label().replace( '\n', "<br>" ) );
}
}
}
@@ -333,7 +333,7 @@ TQString AddresseeView::vCardAsHTML( const KABC::Addressee& addr, ::KIMProxy *pr
// the data afterwards (keeps us safe from possible % signs
// in either one).
notes = TQStyleSheet::escape( addr.note() );
- notes = rowFmtStr.tqarg( i18n( "Notes" ) ).tqarg( notes.tqreplace( '\n', "<br>" ) ) ;
+ notes = rowFmtStr.tqarg( i18n( "Notes" ) ).tqarg( notes.replace( '\n', "<br>" ) ) ;
}
TQString customData;
@@ -359,7 +359,7 @@ TQString AddresseeView::vCardAsHTML( const KABC::Addressee& addr, ::KIMProxy *pr
customEntry.remove( "KADDRESSBOOK-X-" );
customEntry.remove( "KADDRESSBOOK-" );
- int pos = customEntry.tqfind( ':' );
+ int pos = customEntry.find( ':' );
TQString key = customEntry.left( pos );
const TQString value = customEntry.mid( pos + 1 );
@@ -367,7 +367,7 @@ TQString AddresseeView::vCardAsHTML( const KABC::Addressee& addr, ::KIMProxy *pr
if ( key == "BlogFeed" || key == "IMAddress" )
continue;
- const TQMap<TQString, TQString>::ConstIterator keyIt = titleMap.tqfind( key );
+ const TQMap<TQString, TQString>::ConstIterator keyIt = titleMap.find( key );
if ( keyIt != titleMap.end() )
key = keyIt.data();
@@ -419,7 +419,7 @@ TQString AddresseeView::vCardAsHTML( const KABC::Addressee& addr, ::KIMProxy *pr
// @STYLE@ - construct the string by parts, substituting in
// the styles first. There are lots of appends, but we need to
// do it this way to avoid cases where the substituted string
- // tqcontains %1 and the like.
+ // contains %1 and the like.
//
TQString strAddr = TQString::tqfromLatin1(
"<div align=\"center\">"
@@ -591,7 +591,7 @@ void AddresseeView::phoneNumberClicked( const TQString &number )
return;
}
- commandLine.tqreplace( "%N", number );
+ commandLine.replace( "%N", number );
KRun::runCommand( commandLine );
}
@@ -623,8 +623,8 @@ void AddresseeView::sendSMS( const TQString &number, const TQString &text )
*stream << text;
file.close();
- commandLine.tqreplace( "%N", number );
- commandLine.tqreplace( "%F", file.name() );
+ commandLine.replace( "%N", number );
+ commandLine.replace( "%F", file.name() );
KRun::runCommand( commandLine );
}
@@ -640,7 +640,7 @@ void AddresseeView::faxNumberClicked( const TQString &number )
return;
}
- commandLine.tqreplace( "%N", number );
+ commandLine.replace( "%N", number );
KRun::runCommand( commandLine );
}