summaryrefslogtreecommitdiffstats
path: root/libkcal/htmlexport.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-02-16 20:17:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-02-16 20:17:18 +0000
commitf4fae92b6768541e2952173c3d4b09040f95bf7e (patch)
treed8c5d93232235cd635f3310b4d95490df181ba2d /libkcal/htmlexport.cpp
parent125c0a08265b75a133644d3b55f47e37c919f45d (diff)
downloadtdepim-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.cpp56
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( "&", "&amp;" );
- txt = txt.replace( "<", "&lt;" );
- txt = txt.replace( ">", "&gt;" );
- txt = txt.replace( "\"", "&quot;" );
- txt = txt.replace( TQString::fromUtf8("ä"), "&auml;" );
- txt = txt.replace( TQString::fromUtf8("á"), "&aacute;" );
- txt = txt.replace( TQString::fromUtf8("à"), "&agrave;" );
- txt = txt.replace( TQString::fromUtf8("â"), "&acirc;" );
- txt = txt.replace( TQString::fromUtf8("Ä"), "&Auml;" );
- txt = txt.replace( TQString::fromUtf8("ó"), "&oacute;" );
- txt = txt.replace( TQString::fromUtf8("ô"), "&ocirc;" );
- txt = txt.replace( TQString::fromUtf8("ö"), "&ouml;" );
- txt = txt.replace( TQString::fromUtf8("Ö"), "&Ouml;" );
- txt = txt.replace( TQString::fromUtf8("ü"), "&uuml;" );
- txt = txt.replace( TQString::fromUtf8("Ü"), "&Uuml;" );
- txt = txt.replace( TQString::fromUtf8("ß"), "&szlig;" );
- txt = txt.replace( TQString::fromUtf8("€"), "&euro;" );
- txt = txt.replace( TQString::fromUtf8("é"), "&eacute;" );
- txt = txt.replace( TQString::fromUtf8("ë"), "&euml;" );
- txt = txt.replace( TQString::fromUtf8("è"), "&egrave;" );
- txt = txt.replace( TQString::fromUtf8("ñ"), "&ntilde;" );
- txt = txt.replace( TQString::fromUtf8("ç"), "&ccedil;" );
+ txt = txt.tqreplace( "&", "&amp;" );
+ txt = txt.tqreplace( "<", "&lt;" );
+ txt = txt.tqreplace( ">", "&gt;" );
+ txt = txt.tqreplace( "\"", "&quot;" );
+ txt = txt.tqreplace( TQString::fromUtf8("ä"), "&auml;" );
+ txt = txt.tqreplace( TQString::fromUtf8("á"), "&aacute;" );
+ txt = txt.tqreplace( TQString::fromUtf8("à"), "&agrave;" );
+ txt = txt.tqreplace( TQString::fromUtf8("â"), "&acirc;" );
+ txt = txt.tqreplace( TQString::fromUtf8("Ä"), "&Auml;" );
+ txt = txt.tqreplace( TQString::fromUtf8("ó"), "&oacute;" );
+ txt = txt.tqreplace( TQString::fromUtf8("ô"), "&ocirc;" );
+ txt = txt.tqreplace( TQString::fromUtf8("ö"), "&ouml;" );
+ txt = txt.tqreplace( TQString::fromUtf8("Ö"), "&Ouml;" );
+ txt = txt.tqreplace( TQString::fromUtf8("ü"), "&uuml;" );
+ txt = txt.tqreplace( TQString::fromUtf8("Ü"), "&Uuml;" );
+ txt = txt.tqreplace( TQString::fromUtf8("ß"), "&szlig;" );
+ txt = txt.tqreplace( TQString::fromUtf8("€"), "&euro;" );
+ txt = txt.tqreplace( TQString::fromUtf8("é"), "&eacute;" );
+ txt = txt.tqreplace( TQString::fromUtf8("ë"), "&euml;" );
+ txt = txt.tqreplace( TQString::fromUtf8("è"), "&egrave;" );
+ txt = txt.tqreplace( TQString::fromUtf8("ñ"), "&ntilde;" );
+ txt = txt.tqreplace( TQString::fromUtf8("ç"), "&ccedil;" );
return txt;
}