summaryrefslogtreecommitdiffstats
path: root/karm/timekard.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'karm/timekard.cpp')
-rw-r--r--karm/timekard.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/karm/timekard.cpp b/karm/timekard.cpp
index c50168574..d9b8d4a76 100644
--- a/karm/timekard.cpp
+++ b/karm/timekard.cpp
@@ -139,7 +139,7 @@ void TimeKard::printTaskHistory(const Task *task,
.tqarg(daykey)
.tqarg(task->uid());
- if (taskdaytotals.tqcontains(daytaskkey))
+ if (taskdaytotals.contains(daytaskkey))
{
if ( !totalsOnly )
{
@@ -148,8 +148,8 @@ void TimeKard::printTaskHistory(const Task *task,
}
sectionsum += taskdaytotals[daytaskkey]; // in seconds
- if (daytotals.tqcontains(daykey))
- daytotals.tqreplace(daykey, daytotals[daykey] + taskdaytotals[daytaskkey]);
+ if (daytotals.contains(daykey))
+ daytotals.replace(daykey, daytotals[daykey] + taskdaytotals[daytaskkey]);
else
daytotals.insert(daykey, taskdaytotals[daytaskkey]);
}
@@ -226,8 +226,8 @@ TQString TimeKard::sectionHistoryAsText(
.tqarg(daykey)
.tqarg((*event).todoUid());
- if (taskdaytotals.tqcontains(daytaskkey))
- taskdaytotals.tqreplace(daytaskkey,
+ if (taskdaytotals.contains(daytaskkey))
+ taskdaytotals.replace(daytaskkey,
taskdaytotals[daytaskkey] + (*event).duration());
else
taskdaytotals.insert(daytaskkey, (*event).duration());
@@ -282,7 +282,7 @@ TQString TimeKard::sectionHistoryAsText(
{
TQString daykey = day.toString(TQString::tqfromLatin1("yyyyMMdd"));
- if (daytotals.tqcontains(daykey))
+ if (daytotals.contains(daykey))
{
if ( !totalsOnly )
{