diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-16 09:59:50 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-16 09:59:50 -0600 |
commit | 9cc13dcbb01a96c9e60a07ca63c61d24b374f50d (patch) | |
tree | ab537a329b9613e11dce8195761f93ffe82aed24 /libtdepim/linklocator.cpp | |
parent | 3ca10fd9a2dc631429d3b5d5c5e42a7d211d5a12 (diff) | |
download | tdepim-9cc13dcbb01a96c9e60a07ca63c61d24b374f50d.tar.gz tdepim-9cc13dcbb01a96c9e60a07ca63c61d24b374f50d.zip |
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit 3ca10fd9a2dc631429d3b5d5c5e42a7d211d5a12.
Diffstat (limited to 'libtdepim/linklocator.cpp')
-rw-r--r-- | libtdepim/linklocator.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/libtdepim/linklocator.cpp b/libtdepim/linklocator.cpp index be2bd1afb..399c5d3b3 100644 --- a/libtdepim/linklocator.cpp +++ b/libtdepim/linklocator.cpp @@ -28,7 +28,7 @@ #include <kmdcodec.h> #include <kdebug.h> -#include <stylesheet.h> +#include <tqstylesheet.h> #include <tqfile.h> #include <tqregexp.h> @@ -176,7 +176,7 @@ 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 ) ) { @@ -361,8 +361,8 @@ TQString LinkLocator::pngToDataUrl( const TQString & iconPath ) TQByteArray ba = pngFile.readAll(); pngFile.close(); - return TQString::fromLatin1("data:image/png;base64,%1") - .arg( KCodecs::base64Encode( ba ).data() ); + return TQString::tqfromLatin1("data:image/png;base64,%1") + .tqarg( KCodecs::base64Encode( ba ).data() ); } @@ -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 ); @@ -422,7 +422,7 @@ TQString LinkLocator::getEmoticon() // for copy & paste) representing the smiley htmlRep = TQString("<img class=\"pimsmileyimg\" src=\"%1\" " "alt=\"%2\" title=\"%3\" width=\"16\" height=\"16\"/>") - .arg( dataUrl, + .tqarg( dataUrl, TQStyleSheet::escape( smiley ), TQStyleSheet::escape( smiley ) ); } @@ -445,7 +445,7 @@ TQString LinkLocator::highlightedText() if ( ch != '/' && ch != '*' && ch != '_' ) return TQString(); - TQRegExp re = TQRegExp( TQString("\\%1([0-9A-Za-z]+)\\%2").arg( ch ).arg( ch ) ); + TQRegExp re = TQRegExp( TQString("\\%1([0-9A-Za-z]+)\\%2").tqarg( ch ).tqarg( ch ) ); if ( re.search( mText, mPos ) == mPos ) { uint length = re.matchedLength(); // there must be a whitespace after the closing formating symbol |