diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /kalarm/lib/datetime.cpp | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kalarm/lib/datetime.cpp')
-rw-r--r-- | kalarm/lib/datetime.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/kalarm/lib/datetime.cpp b/kalarm/lib/datetime.cpp index d7f5ee862..3ebaccd30 100644 --- a/kalarm/lib/datetime.cpp +++ b/kalarm/lib/datetime.cpp @@ -24,26 +24,26 @@ #include "datetime.h" -QTime DateTime::mStartOfDay; +TQTime DateTime::mStartOfDay; -QTime DateTime::time() const +TQTime DateTime::time() const { return mDateOnly ? mStartOfDay : mDateTime.time(); } -QDateTime DateTime::dateTime() const +TQDateTime DateTime::dateTime() const { - return mDateOnly ? QDateTime(mDateTime.date(), mStartOfDay) : mDateTime; + return mDateOnly ? TQDateTime(mDateTime.date(), mStartOfDay) : mDateTime; } -QString DateTime::formatLocale(bool shortFormat) const +TQString DateTime::formatLocale(bool shortFormat) const { if (mDateOnly) return KGlobal::locale()->formatDate(mDateTime.date(), shortFormat); else if (mTimeValid) return KGlobal::locale()->formatDateTime(mDateTime, shortFormat); else - return QString::null; + return TQString::null; } bool operator==(const DateTime& dt1, const DateTime& dt2) @@ -73,7 +73,7 @@ bool operator<(const DateTime& dt1, const DateTime& dt2) return false; if (!dt1.mDateOnly && !dt2.mDateOnly) return dt1.mDateTime.time() < dt2.mDateTime.time(); - QTime t = DateTime::startOfDay(); + TQTime t = DateTime::startOfDay(); if (dt1.mDateOnly) return t < dt2.mDateTime.time(); return dt1.mDateTime.time() < t; |