From 4c6f8d69e2d1501837affb472c4eb8fec4462240 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 10 Aug 2011 06:08:18 +0000 Subject: 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 --- libkcal/htmlexport.cpp | 56 +++++++++++++++++++++++++------------------------- 1 file changed, 28 insertions(+), 28 deletions(-) (limited to 'libkcal/htmlexport.cpp') diff --git a/libkcal/htmlexport.cpp b/libkcal/htmlexport.cpp index cbe3f6d7e..4bedf8806 100644 --- a/libkcal/htmlexport.cpp +++ b/libkcal/htmlexport.cpp @@ -172,14 +172,14 @@ void HtmlExport::createMonthView(TQTextStream *ts) *ts << " "; *ts << "
" << TQString::number(start.day()); - if (mHolidayMap.tqcontains(start)) { + if (mHolidayMap.contains(start)) { *ts << " " << mHolidayMap[start] << ""; } @@ -332,13 +332,13 @@ void HtmlExport::createTodoList ( TQTextStream *ts ) Todo *subev = ev; if ( ev->relatedTo() ) { if ( ev->relatedTo()->type()=="Todo" ) { - if ( rawTodoList.tqfind( static_cast( ev->relatedTo() ) ) == + if ( rawTodoList.find( static_cast( ev->relatedTo() ) ) == rawTodoList.end() ) { rawTodoList.append( static_cast( ev->relatedTo() ) ); } } } - it = rawTodoList.tqfind( subev ); + it = rawTodoList.find( subev ); ++it; } @@ -589,7 +589,7 @@ void HtmlExport::formatAttendees( TQTextStream *ts, Incidence *event ) TQString HtmlExport::breakString(const TQString &text) { - int number = text.tqcontains("\n"); + int number = text.contains("\n"); if(number < 0) { return text; } else { @@ -598,7 +598,7 @@ TQString HtmlExport::breakString(const TQString &text) int pos = 0; TQString tmp; for(int i=0;i<=number;i++) { - pos = tmpText.tqfind("\n"); + pos = tmpText.find("\n"); tmp = tmpText.left(pos); tmpText = tmpText.right(tmpText.length() - pos - 1); out += tmp + "
"; @@ -640,28 +640,28 @@ void HtmlExport::createFooter( TQTextStream *ts ) TQString HtmlExport::cleanChars(const TQString &text) { TQString txt = text; - txt = txt.tqreplace( "&", "&" ); - txt = txt.tqreplace( "<", "<" ); - txt = txt.tqreplace( ">", ">" ); - txt = txt.tqreplace( "\"", """ ); - txt = txt.tqreplace( TQString::fromUtf8("ä"), "ä" ); - txt = txt.tqreplace( TQString::fromUtf8("á"), "á" ); - txt = txt.tqreplace( TQString::fromUtf8("à"), "à" ); - txt = txt.tqreplace( TQString::fromUtf8("â"), "â" ); - txt = txt.tqreplace( TQString::fromUtf8("Ä"), "Ä" ); - txt = txt.tqreplace( TQString::fromUtf8("ó"), "ó" ); - txt = txt.tqreplace( TQString::fromUtf8("ô"), "ô" ); - txt = txt.tqreplace( TQString::fromUtf8("ö"), "ö" ); - txt = txt.tqreplace( TQString::fromUtf8("Ö"), "Ö" ); - txt = txt.tqreplace( TQString::fromUtf8("ü"), "ü" ); - txt = txt.tqreplace( TQString::fromUtf8("Ü"), "Ü" ); - txt = txt.tqreplace( TQString::fromUtf8("ß"), "ß" ); - txt = txt.tqreplace( TQString::fromUtf8("€"), "€" ); - txt = txt.tqreplace( TQString::fromUtf8("é"), "é" ); - txt = txt.tqreplace( TQString::fromUtf8("ë"), "ë" ); - txt = txt.tqreplace( TQString::fromUtf8("è"), "è" ); - txt = txt.tqreplace( TQString::fromUtf8("ñ"), "ñ" ); - txt = txt.tqreplace( TQString::fromUtf8("ç"), "ç" ); + txt = txt.replace( "&", "&" ); + txt = txt.replace( "<", "<" ); + txt = txt.replace( ">", ">" ); + txt = txt.replace( "\"", """ ); + txt = txt.replace( TQString::fromUtf8("ä"), "ä" ); + txt = txt.replace( TQString::fromUtf8("á"), "á" ); + txt = txt.replace( TQString::fromUtf8("à"), "à" ); + txt = txt.replace( TQString::fromUtf8("â"), "â" ); + txt = txt.replace( TQString::fromUtf8("Ä"), "Ä" ); + txt = txt.replace( TQString::fromUtf8("ó"), "ó" ); + txt = txt.replace( TQString::fromUtf8("ô"), "ô" ); + txt = txt.replace( TQString::fromUtf8("ö"), "ö" ); + txt = txt.replace( TQString::fromUtf8("Ö"), "Ö" ); + txt = txt.replace( TQString::fromUtf8("ü"), "ü" ); + txt = txt.replace( TQString::fromUtf8("Ü"), "Ü" ); + txt = txt.replace( TQString::fromUtf8("ß"), "ß" ); + txt = txt.replace( TQString::fromUtf8("€"), "€" ); + txt = txt.replace( TQString::fromUtf8("é"), "é" ); + txt = txt.replace( TQString::fromUtf8("ë"), "ë" ); + txt = txt.replace( TQString::fromUtf8("è"), "è" ); + txt = txt.replace( TQString::fromUtf8("ñ"), "ñ" ); + txt = txt.replace( TQString::fromUtf8("ç"), "ç" ); return txt; } -- cgit v1.2.1