summaryrefslogtreecommitdiffstats
path: root/libkcal/event.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libkcal/event.cpp')
-rw-r--r--libkcal/event.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/libkcal/event.cpp b/libkcal/event.cpp
index 077a43318..0f286e7f6 100644
--- a/libkcal/event.cpp
+++ b/libkcal/event.cpp
@@ -70,7 +70,7 @@ bool Event::operator==( const Event& e2 ) const
-void Event::setDtEnd(const QDateTime &dtEnd)
+void Event::setDtEnd(const TQDateTime &dtEnd)
{
if (mReadOnly) return;
@@ -82,7 +82,7 @@ void Event::setDtEnd(const QDateTime &dtEnd)
updated();
}
-QDateTime Event::dtEnd() const
+TQDateTime Event::dtEnd() const
{
if (hasEndDate()) return mDtEnd;
if (hasDuration()) return dtStart().addSecs(duration());
@@ -92,23 +92,23 @@ QDateTime Event::dtEnd() const
return dtStart();
}
-QDate Event::dateEnd() const
+TQDate Event::dateEnd() const
{
if ( doesFloat() ) return dtEnd().date();
else return dtEnd().addSecs(-1).date();
}
-QString Event::dtEndTimeStr() const
+TQString Event::dtEndTimeStr() const
{
return KGlobal::locale()->formatTime(dtEnd().time());
}
-QString Event::dtEndDateStr(bool shortfmt) const
+TQString Event::dtEndDateStr(bool shortfmt) const
{
return KGlobal::locale()->formatDate(dtEnd().date(),shortfmt);
}
-QString Event::dtEndStr() const
+TQString Event::dtEndStr() const
{
return KGlobal::locale()->formatDateTime(dtEnd());
}
@@ -126,8 +126,8 @@ bool Event::hasEndDate() const
bool Event::isMultiDay() const
{
// End date is non inclusive, so subtract 1 second...
- QDateTime start( dtStart() );
- QDateTime end( dtEnd() );
+ TQDateTime start( dtStart() );
+ TQDateTime end( dtEnd() );
if ( ! doesFloat() ) {
end = end.addSecs(-1);
}