summaryrefslogtreecommitdiffstats
path: root/libkdepim/addresseelineedit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libkdepim/addresseelineedit.cpp')
-rw-r--r--libkdepim/addresseelineedit.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/libkdepim/addresseelineedit.cpp b/libkdepim/addresseelineedit.cpp
index 5e3d0cf39..243b66086 100644
--- a/libkdepim/addresseelineedit.cpp
+++ b/libkdepim/addresseelineedit.cpp
@@ -217,12 +217,12 @@ void AddresseeLineEdit::keyPressEvent( TQKeyEvent *e )
{
bool accept = false;
- if ( KStdAccel::shortcut( KStdAccel::SubstringCompletion ).contains( KKey( e ) ) ) {
+ if ( KStdAccel::shortcut( KStdAccel::SubstringCompletion ).tqcontains( KKey( e ) ) ) {
//TODO: add LDAP substring lookup, when it becomes available in KPIM::LDAPSearch
updateSearchString();
doCompletion( true );
accept = true;
- } else if ( KStdAccel::shortcut( KStdAccel::TextCompletion ).contains( KKey( e ) ) ) {
+ } else if ( KStdAccel::shortcut( KStdAccel::TextCompletion ).tqcontains( KKey( e ) ) ) {
int len = text().length();
if ( len == cursorPosition() ) { // at End?
@@ -287,11 +287,11 @@ void AddresseeLineEdit::insert( const TQString &t )
}
else if ( newText.find(" at ") != -1 ) {
// Anti-spam stuff
- newText.replace( " at ", "@" );
- newText.replace( " dot ", "." );
+ newText.tqreplace( " at ", "@" );
+ newText.tqreplace( " dot ", "." );
}
else if ( newText.find("(at)") != -1 ) {
- newText.replace( TQRegExp("\\s*\\(at\\)\\s*"), "@" );
+ newText.tqreplace( TQRegExp("\\s*\\(at\\)\\s*"), "@" );
}
TQString contents = text();
@@ -388,8 +388,8 @@ void AddresseeLineEdit::dropEvent( TQDropEvent *e )
return;
}
} else {
- // Let's see if this drop contains a comma separated list of emails
- TQString dropData = TQString::fromUtf8( e->encodedData( "text/plain" ) );
+ // Let's see if this drop tqcontains a comma separated list of emails
+ TQString dropData = TQString::fromUtf8( e->tqencodedData( "text/plain" ) );
TQStringList addrs = splitEmailAddrList( dropData );
if ( addrs.count() > 0 ) {
setText( normalizeAddressesAndDecodeIDNs( dropData ) );
@@ -698,7 +698,7 @@ void AddresseeLineEdit::addContact( const KABC::Addressee& addr, int weight, int
* We remove the <blank> in getAdjustedCompletionItems.
*/
if ( isPrefEmail == prefEmailWeight )
- fullEmail.replace( " <", " <" );
+ fullEmail.tqreplace( " <", " <" );
addCompletionItem( fullEmail, weight + isPrefEmail, source, &keyWords );
isPrefEmail = 0;
@@ -821,7 +821,7 @@ void AddresseeLineEdit::slotLDAPSearchData( const KPIM::LdapResultList& adrs )
addr.setNameFromString( (*it).name );
addr.setEmails( (*it).email );
- if ( !s_ldapClientToCompletionSourceMap->contains( (*it).clientNumber ) )
+ if ( !s_ldapClientToCompletionSourceMap->tqcontains( (*it).clientNumber ) )
updateLDAPWeights(); // we got results from a new source, so update the completion sources
addContact( addr, (*it).completionWeight, (*s_ldapClientToCompletionSourceMap)[ (*it ).clientNumber ] );
@@ -852,7 +852,7 @@ void AddresseeLineEdit::setCompletedItems( const TQStringList& items, bool autoS
TQPoint oldPosOfItemUnderMouse;
if ( itemUnderMouse ) {
oldTextUnderMouse = itemUnderMouse->text();
- oldPosOfItemUnderMouse = completionBox->itemRect( itemUnderMouse ).topLeft();
+ oldPosOfItemUnderMouse = completionBox->tqitemRect( itemUnderMouse ).topLeft();
}
completionBox->setItems( items );
@@ -865,7 +865,7 @@ void AddresseeLineEdit::setCompletedItems( const TQStringList& items, bool autoS
// calls show(), and that's where KCompletionBox installs its filter.
// We want to be first, though, so do it now.
if ( s_completion->order() == KCompletion::Weighted )
- qApp->installEventFilter( this );
+ tqApp->installEventFilter( this );
}
// Try to re-select what was selected before, otherrwise use the first
@@ -882,7 +882,7 @@ void AddresseeLineEdit::setCompletedItems( const TQStringList& items, bool autoS
// if the mouse was over an item, before, but now that's elsewhere,
// move the cursor, so folks don't accidently click the wrong item
if ( newItemUnderMouse ) {
- TQRect r = completionBox->itemRect( newItemUnderMouse );
+ TQRect r = completionBox->tqitemRect( newItemUnderMouse );
TQPoint target = r.topLeft();
if ( oldPosOfItemUnderMouse != target ) {
target.setX( target.x() + r.width()/2 );
@@ -1243,7 +1243,7 @@ const TQStringList KPIM::AddresseeLineEdit::getAdjustedCompletionItems( bool ful
}
(*it) = (*it).prepend( s_completionItemIndentString );
// remove preferred email sort <blank> added in addContact()
- (*it).replace( " <", " <" );
+ (*it).tqreplace( " <", " <" );
}
sections[idx].append( *it );