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 /libkcal/htmlexport.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 '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 c945b88f0..f5fde5d9d 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.contains(start) || start.dayOfWeek() == 7) { + if (mHolidayMap.tqcontains(start) || start.dayOfWeek() == 7) { *ts << "class=\"dateholiday\""; } else { *ts << "class=\"date\""; } *ts << ">" << TQString::number(start.day()); - if (mHolidayMap.contains(start)) { + if (mHolidayMap.tqcontains(start)) { *ts << " <em>" << mHolidayMap[start] << "</em>"; } @@ -343,7 +343,7 @@ void HtmlExport::createTodoList ( TQTextStream *ts ) } // FIXME: Sort list by priorities. This is brute force and should be - // replaced by a real sorting algorithm. + // tqreplaced by a real sorting algorithm. Todo::List todoList; for ( int i = 1; i <= 9; ++i ) { for( it = rawTodoList.begin(); it != rawTodoList.end(); ++it ) { @@ -403,7 +403,7 @@ void HtmlExport::createTodoList ( TQTextStream *ts ) Todo::List sortedList; // FIXME: Sort list by priorities. This is brute force and should be - // replaced by a real sorting algorithm. + // tqreplaced by a real sorting algorithm. for ( int i = 1; i <= 9; ++i ) { Incidence::List::ConstIterator it2; for( it2 = relations.begin(); it2 != relations.end(); ++it2 ) { @@ -559,7 +559,7 @@ void HtmlExport::formatAttendees( TQTextStream *ts, Incidence *event ) #ifndef KORG_NOKABC KABC::AddressBook *add_book = KABC::StdAddressBook::self( true ); KABC::Addressee::List addressList; - addressList = add_book->findByEmail(event->organizer().email()); + addressList = add_book->tqfindByEmail(event->organizer().email()); KABC::Addressee o = addressList.first(); if (!o.isEmpty() && addressList.size()<2) { *ts << "<a href=\"mailto:" << event->organizer().email() << "\">"; @@ -589,7 +589,7 @@ void HtmlExport::formatAttendees( TQTextStream *ts, Incidence *event ) TQString HtmlExport::breakString(const TQString &text) { - int number = text.contains("\n"); + int number = text.tqcontains("\n"); if(number < 0) { return text; } else { @@ -640,28 +640,28 @@ void HtmlExport::createFooter( TQTextStream *ts ) TQString HtmlExport::cleanChars(const TQString &text) { TQString txt = text; - 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("ç"), "ç" ); + 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("ç"), "ç" ); return txt; } |