summaryrefslogtreecommitdiffstats
path: root/kalarm/lib/datetime.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kalarm/lib/datetime.cpp')
-rw-r--r--kalarm/lib/datetime.cpp14
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;