summaryrefslogtreecommitdiffstats
path: root/kplato/kptcalendar.cc
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-12-16 09:56:31 -0600
committerTimothy Pearson <[email protected]>2011-12-16 09:56:31 -0600
commitc9cb4f487428aad5d8cda5e3a4b9ad87390d7e54 (patch)
tree1ee1912ac4bb966475f0db0f2a78678661b4b4a5 /kplato/kptcalendar.cc
parent94844816550ad672ccfcdc25659c625546239998 (diff)
downloadkoffice-c9cb4f487428aad5d8cda5e3a4b9ad87390d7e54.tar.gz
koffice-c9cb4f487428aad5d8cda5e3a4b9ad87390d7e54.zip
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit 94844816550ad672ccfcdc25659c625546239998.
Diffstat (limited to 'kplato/kptcalendar.cc')
-rw-r--r--kplato/kptcalendar.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/kplato/kptcalendar.cc b/kplato/kptcalendar.cc
index 56ba7380..486c3dac 100644
--- a/kplato/kptcalendar.cc
+++ b/kplato/kptcalendar.cc
@@ -225,11 +225,11 @@ Duration CalendarDay::effort(const TQTime &start, const TQTime &end) {
for (; it.current(); ++it) {
//kdDebug()<<k_funcinfo<<"Interval: "<<it.current()->first.toString()<<" - "<<it.current()->second.toString()<<endl;
if (end > it.current()->first && start < it.current()->second) {
- DateTime dtStart(TQDate::currentDate(), start);
+ DateTime dtStart(TQDate::tqcurrentDate(), start);
if (start < it.current()->first) {
dtStart.setTime(it.current()->first);
}
- DateTime dtEnd(TQDate::currentDate(), end);
+ DateTime dtEnd(TQDate::tqcurrentDate(), end);
if (end > it.current()->second) {
dtEnd.setTime(it.current()->second);
}
@@ -282,8 +282,8 @@ Duration CalendarDay::duration() const {
Duration dur;
TQPtrListIterator<TQPair<TQTime, TQTime> > it = m_workingIntervals;
for (; it.current(); ++it) {
- DateTime start(TQDate::currentDate(), it.current()->first);
- DateTime end(TQDate::currentDate(), it.current()->second);
+ DateTime start(TQDate::tqcurrentDate(), it.current()->first);
+ DateTime end(TQDate::tqcurrentDate(), it.current()->second);
dur += end - start;
}
return dur;