diff options
Diffstat (limited to 'kplato/kptdatetime.cc')
-rw-r--r-- | kplato/kptdatetime.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/kplato/kptdatetime.cc b/kplato/kptdatetime.cc index 6cdfae24..2a05ace5 100644 --- a/kplato/kptdatetime.cc +++ b/kplato/kptdatetime.cc @@ -24,24 +24,24 @@ namespace KPlato { -DateTime::DateTime() : QDateTime() { +DateTime::DateTime() : TQDateTime() { } -DateTime::DateTime(const QDateTime &dt) : QDateTime(dt.date(), dt.time()) { +DateTime::DateTime(const TQDateTime &dt) : TQDateTime(dt.date(), dt.time()) { } -DateTime::DateTime(const QDate &date, const QTime &time) : QDateTime(date, time) { +DateTime::DateTime(const TQDate &date, const TQTime &time) : TQDateTime(date, time) { } void DateTime::add(const Duration &duration) { if (isValid()) - *this = addSecs(duration.seconds()); + *this = TQDateTime(addSecs(duration.seconds())); //kdDebug()<<k_funcinfo<<"days,secs: "<<days<<","<<secs<<" gives: "<<toString()<<endl; } void DateTime::subtract(const Duration &duration) { if (isValid()) - *this = addSecs(-duration.seconds()); + *this = TQDateTime(addSecs(-duration.seconds())); //kdDebug()<<k_funcinfo<<"days,secs: "<<days<<","<<secs<<" gives: "<<toString()<<endl; } |