diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
commit | 4c6f8d69e2d1501837affb472c4eb8fec4462240 (patch) | |
tree | 766a8ad7939fcf3eec534184c36bd0e0f80489e2 /karm/timekard.cpp | |
parent | 469cc56a805bd3d6940d54adbef554877c29853c (diff) | |
download | tdepim-4c6f8d69e2d1501837affb472c4eb8fec4462240.tar.gz tdepim-4c6f8d69e2d1501837affb472c4eb8fec4462240.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'karm/timekard.cpp')
-rw-r--r-- | karm/timekard.cpp | 12 |
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 ) { |