diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-02-16 20:17:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-02-16 20:17:18 +0000 |
commit | f4fae92b6768541e2952173c3d4b09040f95bf7e (patch) | |
tree | d8c5d93232235cd635f3310b4d95490df181ba2d /libkdepim/linklocator.cpp | |
parent | 125c0a08265b75a133644d3b55f47e37c919f45d (diff) | |
download | tdepim-f4fae92b6768541e2952173c3d4b09040f95bf7e.tar.gz tdepim-f4fae92b6768541e2952173c3d4b09040f95bf7e.zip |
Moved kpilot from kdepim to applications, as the core Trinity libraries should not contain hardware-dependent software
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1221127 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libkdepim/linklocator.cpp')
-rw-r--r-- | libkdepim/linklocator.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/libkdepim/linklocator.cpp b/libkdepim/linklocator.cpp index 0ea0fa680..46542f89b 100644 --- a/libkdepim/linklocator.cpp +++ b/libkdepim/linklocator.cpp @@ -176,12 +176,12 @@ TQString LinkLocator::getEmailAddress() // determine the local part of the email address int start = mPos - 1; - while ( start >= 0 && mText[start].unicode() < 128 && + while ( start >= 0 && mText[start].tqunicode() < 128 && ( mText[start].isLetterOrNumber() || mText[start] == '@' || // allow @ to find invalid email addresses allowedSpecialChars.find( mText[start] ) != -1 ) ) { if ( mText[start] == '@' ) - return TQString(); // local part contains '@' -> no email address + return TQString(); // local part tqcontains '@' -> no email address --start; } ++start; @@ -200,7 +200,7 @@ TQString LinkLocator::getEmailAddress() mText[end] == '.' || mText[end] == '-' ) ) { if ( mText[end] == '@' ) - return TQString(); // domain part contains '@' -> no email address + return TQString(); // domain part tqcontains '@' -> no email address if ( mText[end] == '.' ) dotPos = QMIN( dotPos, end ); // remember index of first dot in domain ++end; @@ -305,7 +305,7 @@ TQString LinkLocator::convertToHtml(const TQString& plainText, int flags, else hyperlink = str; - str = str.replace('&', "&"); + str = str.tqreplace('&', "&"); result += "<a href=\"" + hyperlink + "\">" + str + "</a>"; x += locator.mPos - start; continue; @@ -319,7 +319,7 @@ TQString LinkLocator::convertToHtml(const TQString& plainText, int flags, // remove the local part from the result (as '&'s have been expanded to // & we have to take care of the 4 additional characters per '&') - result.truncate(result.length() - len - (localPart.contains('&')*4)); + result.truncate(result.length() - len - (localPart.tqcontains('&')*4)); x -= len; result += "<a href=\"mailto:" + str + "\">" + str + "</a>"; @@ -361,7 +361,7 @@ TQString LinkLocator::pngToDataUrl( const TQString & iconPath ) TQByteArray ba = pngFile.readAll(); pngFile.close(); - return TQString::fromLatin1("data:image/png;base64,%1") + return TQString::tqfromLatin1("data:image/png;base64,%1") .arg( KCodecs::base64Encode( ba ) ); } @@ -390,11 +390,11 @@ TQString LinkLocator::getEmoticon() return TQString::null; const TQString smiley = mText.mid( mPos, smileyLen ); - if ( !s_smileyEmoticonNameMap->contains( smiley ) ) + if ( !s_smileyEmoticonNameMap->tqcontains( smiley ) ) return TQString::null; // that's not a (known) smiley TQString htmlRep; - if ( s_smileyEmoticonHTMLCache->contains( smiley ) ) { + if ( s_smileyEmoticonHTMLCache->tqcontains( smiley ) ) { htmlRep = (*s_smileyEmoticonHTMLCache)[smiley]; } else { @@ -403,14 +403,14 @@ TQString LinkLocator::getEmoticon() #if KDE_IS_VERSION( 3, 3, 91 ) const TQString iconPath = locate( "emoticons", EmotIcons::theme() + - TQString::fromLatin1( "/" ) + - imageName + TQString::fromLatin1(".png") ); + TQString::tqfromLatin1( "/" ) + + imageName + TQString::tqfromLatin1(".png") ); #else const TQString iconPath = locate( "data", - TQString::fromLatin1( "kopete/pics/emoticons/" )+ + TQString::tqfromLatin1( "kopete/pics/emoticons/" )+ EmotIcons::theme() + - TQString::fromLatin1( "/" ) + - imageName + TQString::fromLatin1(".png") ); + TQString::tqfromLatin1( "/" ) + + imageName + TQString::tqfromLatin1(".png") ); #endif const TQString dataUrl = pngToDataUrl( iconPath ); |