diff options
Diffstat (limited to 'kplato/kptcalendar.cc')
-rw-r--r-- | kplato/kptcalendar.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kplato/kptcalendar.cc b/kplato/kptcalendar.cc index 486c3dac..56ba7380 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::tqcurrentDate(), start); + DateTime dtStart(TQDate::currentDate(), start); if (start < it.current()->first) { dtStart.setTime(it.current()->first); } - DateTime dtEnd(TQDate::tqcurrentDate(), end); + DateTime dtEnd(TQDate::currentDate(), 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::tqcurrentDate(), it.current()->first); - DateTime end(TQDate::tqcurrentDate(), it.current()->second); + DateTime start(TQDate::currentDate(), it.current()->first); + DateTime end(TQDate::currentDate(), it.current()->second); dur += end - start; } return dur; |