summaryrefslogtreecommitdiffstats
path: root/libkcal/htmlexport.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-14 20:16:30 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-14 20:16:30 +0000
commit1c93fca14d9ce37499bcfdf994c660186a0b6f17 (patch)
treef2defe163a805a9e34a2142dfde4cdb5e49241e7 /libkcal/htmlexport.cpp
parent67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (diff)
downloadtdepim-1c93fca14d9ce37499bcfdf994c660186a0b6f17.tar.gz
tdepim-1c93fca14d9ce37499bcfdf994c660186a0b6f17.zip
Enable kdepim compilation under Qt4
This will likely break Qt3 compilation temporarily, which is an unintended side effect. A third and final kdepim commit will repair Qt3 compilation shortly. git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227946 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libkcal/htmlexport.cpp')
-rw-r--r--libkcal/htmlexport.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/libkcal/htmlexport.cpp b/libkcal/htmlexport.cpp
index 387ba1730..cbe3f6d7e 100644
--- a/libkcal/htmlexport.cpp
+++ b/libkcal/htmlexport.cpp
@@ -147,8 +147,8 @@ void HtmlExport::createMonthView(TQTextStream *ts)
while ( start < toDate() ) {
// Write header
- *ts << "<h2>" << (i18n("month_year","%1 %2").arg(KGlobal::locale()->calendar()->monthName(start))
- .arg(start.year())) << "</h2>\n";
+ *ts << "<h2>" << (i18n("month_year","%1 %2").tqarg(KGlobal::locale()->calendar()->monthName(start))
+ .tqarg(start.year())) << "</h2>\n";
if ( KGlobal::locale()->weekStartDay() == 1 ) {
start = start.addDays(1 - start.dayOfWeek());
} else {
@@ -244,7 +244,7 @@ void HtmlExport::createEventList (TQTextStream *ts)
*ts << " </tr>\n";
for ( TQDate dt = fromDate(); dt <= toDate(); dt = dt.addDays(1) ) {
- kdDebug(5850) << "Getting events for " << dt.toString() << endl;
+ kdDebug(5850) << "Getting events for " << TQString(dt.toString()) << endl;
Event::List events = mCalendar->events(dt,
EventSortStartDate,
SortDirectionAscending );
@@ -459,7 +459,7 @@ void HtmlExport::createTodo (TQTextStream *ts,Todo *todo)
*ts << " <td";
if (completed) *ts << " class=\"done\"";
*ts << ">\n";
- *ts << " " << i18n("%1 %").arg(todo->percentComplete()) << "\n";
+ *ts << " " << i18n("%1 %").tqarg(todo->percentComplete()) << "\n";
*ts << " </td>\n";
if ( mSettings->taskDueDate() ) {
@@ -618,20 +618,20 @@ void HtmlExport::createFooter( TQTextStream *ts )
TQString mail, name, credit, creditURL;*/
if (!mSettings->eMail().isEmpty()) {
if (!mSettings->name().isEmpty())
- trailer += i18n("by <a href=\"mailto:%1\">%2</a> ").arg( mSettings->eMail() ).arg( mSettings->name() );
+ trailer += i18n("by <a href=\"mailto:%1\">%2</a> ").tqarg( mSettings->eMail() ).tqarg( mSettings->name() );
else
- trailer += i18n("by <a href=\"mailto:%1\">%2</a> ").arg( mSettings->eMail() ).arg( mSettings->eMail() );
+ trailer += i18n("by <a href=\"mailto:%1\">%2</a> ").tqarg( mSettings->eMail() ).tqarg( mSettings->eMail() );
} else {
if (!mSettings->name().isEmpty())
- trailer += i18n("by %1 ").arg( mSettings->name() );
+ trailer += i18n("by %1 ").tqarg( mSettings->name() );
}
if (!mSettings->creditName().isEmpty()) {
if (!mSettings->creditURL().isEmpty())
trailer += i18n("with <a href=\"%1\">%2</a>")
- .arg( mSettings->creditURL() )
- .arg( mSettings->creditName() );
+ .tqarg( mSettings->creditURL() )
+ .tqarg( mSettings->creditName() );
else
- trailer += i18n("with %1").arg( mSettings->creditName() );
+ trailer += i18n("with %1").tqarg( mSettings->creditName() );
}
*ts << "<p>" << trailer << "</p>\n";
}
@@ -706,7 +706,7 @@ void HtmlExport::addHoliday( const TQDate &date, const TQString &name)
if ( mHolidayMap[date].isEmpty() ) {
mHolidayMap[date] = name;
} else {
- mHolidayMap[date] = i18n("list of holidays", "%1, %2").arg(mHolidayMap[date]).arg(name);
+ mHolidayMap[date] = i18n("list of holidays", "%1, %2").tqarg(mHolidayMap[date]).tqarg(name);
}
}