summaryrefslogtreecommitdiffstats
path: root/karm/timekard.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-19 11:59:01 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-19 11:59:01 -0600
commit716a5de8870d7c02bb4d0aed72f30291b17b763a (patch)
tree29e58b213ead28151ccf7eb33d12c968ea844120 /karm/timekard.cpp
parent0e00c0a86a4c9d7e80c7b66d91940cc7dcb79f78 (diff)
downloadtdepim-716a5de8870d7c02bb4d0aed72f30291b17b763a.tar.gz
tdepim-716a5de8870d7c02bb4d0aed72f30291b17b763a.zip
Remove additional unneeded tq method conversions
Diffstat (limited to 'karm/timekard.cpp')
-rw-r--r--karm/timekard.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/karm/timekard.cpp b/karm/timekard.cpp
index 6ac410a26..984baf741 100644
--- a/karm/timekard.cpp
+++ b/karm/timekard.cpp
@@ -62,8 +62,8 @@ TQString TimeKard::totalsAsText(TaskView* taskview, bool justThisTask, WhichTime
retval += KGlobal::locale()->formatDateTime(TQDateTime::currentDateTime());
retval += cr + cr;
retval += TQString(TQString::fromLatin1("%1 %2"))
- .tqarg(i18n("Time"), timeWidth)
- .tqarg(i18n("Task"));
+ .arg(i18n("Time"), timeWidth)
+ .arg(i18n("Task"));
retval += cr;
retval += line;
@@ -92,10 +92,10 @@ TQString TimeKard::totalsAsText(TaskView* taskview, bool justThisTask, WhichTime
// total
buf.fill('-', reportWidth);
- retval += TQString(TQString::fromLatin1("%1")).tqarg(buf, timeWidth) + cr;
+ retval += TQString(TQString::fromLatin1("%1")).arg(buf, timeWidth) + cr;
retval += TQString(TQString::fromLatin1("%1 %2"))
- .tqarg(formatTime(sum),timeWidth)
- .tqarg(i18n("Total"));
+ .arg(formatTime(sum),timeWidth)
+ .arg(i18n("Total"));
}
else
retval += i18n("No tasks.");
@@ -110,8 +110,8 @@ void TimeKard::printTask(Task *task, TQString &s, int level, WhichTime which)
s += buf.fill(' ', level);
s += TQString(TQString::fromLatin1("%1 %2"))
- .tqarg(formatTime(which == TotalTime?task->totalTime():task->totalSessionTime()), timeWidth)
- .tqarg(task->name());
+ .arg(formatTime(which == TotalTime?task->totalTime():task->totalSessionTime()), timeWidth)
+ .arg(task->name());
s += cr;
for (Task* subTask = task->firstChild();
@@ -136,15 +136,15 @@ void TimeKard::printTaskHistory(const Task *task,
{
TQString daykey = day.toString(TQString::fromLatin1("yyyyMMdd"));
TQString daytaskkey = TQString::fromLatin1("%1_%2")
- .tqarg(daykey)
- .tqarg(task->uid());
+ .arg(daykey)
+ .arg(task->uid());
if (taskdaytotals.contains(daytaskkey))
{
if ( !totalsOnly )
{
s += TQString::fromLatin1("%1")
- .tqarg(formatTime(taskdaytotals[daytaskkey]/60), timeWidth);
+ .arg(formatTime(taskdaytotals[daytaskkey]/60), timeWidth);
}
sectionsum += taskdaytotals[daytaskkey]; // in seconds
@@ -162,12 +162,12 @@ void TimeKard::printTaskHistory(const Task *task,
}
// Total for task this section (e.g. week)
- s += TQString::fromLatin1("%1").tqarg(formatTime(sectionsum/60), totalTimeWidth);
+ s += TQString::fromLatin1("%1").arg(formatTime(sectionsum/60), totalTimeWidth);
// Task name
TQString buf;
s += buf.fill(' ', level + 1);
- s += TQString::fromLatin1("%1").tqarg(task->name());
+ s += TQString::fromLatin1("%1").arg(task->name());
s += cr;
for (Task* subTask = task->firstChild();
@@ -223,8 +223,8 @@ TQString TimeKard::sectionHistoryAsText(
{
TQString daykey = (*event).start().date().toString(TQString::fromLatin1("yyyyMMdd"));
TQString daytaskkey = TQString::fromLatin1("%1_%2")
- .tqarg(daykey)
- .tqarg((*event).todoUid());
+ .arg(daykey)
+ .arg((*event).todoUid());
if (taskdaytotals.contains(daytaskkey))
taskdaytotals.replace(daytaskkey,
@@ -246,7 +246,7 @@ TQString TimeKard::sectionHistoryAsText(
// day headings
for (TQDate day = sectionFrom; day <= sectionTo; day = day.addDays(1))
{
- retval += TQString::fromLatin1("%1").tqarg(day.day(), timeWidth);
+ retval += TQString::fromLatin1("%1").arg(day.day(), timeWidth);
}
retval += cr;
retval += line;
@@ -287,7 +287,7 @@ TQString TimeKard::sectionHistoryAsText(
if ( !totalsOnly )
{
retval += TQString::fromLatin1("%1")
- .tqarg(formatTime(daytotals[daykey]/60), timeWidth);
+ .arg(formatTime(daytotals[daykey]/60), timeWidth);
}
sum += daytotals[daykey]; // in seconds
}
@@ -299,8 +299,8 @@ TQString TimeKard::sectionHistoryAsText(
}
retval += TQString::fromLatin1("%1 %2")
- .tqarg(formatTime(sum/60), totalTimeWidth)
- .tqarg(i18n("Total"));
+ .arg(formatTime(sum/60), totalTimeWidth)
+ .arg(i18n("Total"));
}
return retval;
}
@@ -313,11 +313,11 @@ TQString TimeKard::historyAsText(TaskView* taskview, const TQDate& from,
retval += totalsOnly ? i18n("Task Totals") : i18n("Task History");
retval += cr;
retval += i18n("From %1 to %2")
- .tqarg(KGlobal::locale()->formatDate(from))
- .tqarg(KGlobal::locale()->formatDate(to));
+ .arg(KGlobal::locale()->formatDate(from))
+ .arg(KGlobal::locale()->formatDate(to));
retval += cr;
retval += i18n("Printed on: %1")
- .tqarg(KGlobal::locale()->formatDateTime(TQDateTime::currentDateTime()));
+ .arg(KGlobal::locale()->formatDateTime(TQDateTime::currentDateTime()));
if ( perWeek )
{
@@ -353,7 +353,7 @@ TQDate Week::end() const
TQString Week::name() const
{
- return i18n("Week of %1").tqarg(KGlobal::locale()->formatDate(start()));
+ return i18n("Week of %1").arg(KGlobal::locale()->formatDate(start()));
}
TQValueList<Week> Week::weeksFromDateRange(const TQDate& from, const TQDate& to)