summaryrefslogtreecommitdiffstats
path: root/libkcal/event.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /libkcal/event.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-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 '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);
}