diff options
Diffstat (limited to 'libkcal/htmlexport.cpp')
-rw-r--r-- | libkcal/htmlexport.cpp | 56 |
1 files changed, 28 insertions, 28 deletions
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 << " <td valign=\"top\"><table border=\"0\">"; *ts << "<tr><td "; - if (mHolidayMap.tqcontains(start) || start.dayOfWeek() == 7) { + if (mHolidayMap.contains(start) || start.dayOfWeek() == 7) { *ts << "class=\"dateholiday\""; } else { *ts << "class=\"date\""; } *ts << ">" << TQString::number(start.day()); - if (mHolidayMap.tqcontains(start)) { + if (mHolidayMap.contains(start)) { *ts << " <em>" << mHolidayMap[start] << "</em>"; } @@ -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<Todo *>( ev->relatedTo() ) ) == + if ( rawTodoList.find( static_cast<Todo *>( ev->relatedTo() ) ) == rawTodoList.end() ) { rawTodoList.append( static_cast<Todo *>( 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 + "<br />"; @@ -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; } |