summaryrefslogtreecommitdiffstats
path: root/libkcal/freebusy.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/freebusy.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/freebusy.cpp')
-rw-r--r--libkcal/freebusy.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/libkcal/freebusy.cpp b/libkcal/freebusy.cpp
index 71f05b35b..75d0e7db4 100644
--- a/libkcal/freebusy.cpp
+++ b/libkcal/freebusy.cpp
@@ -30,13 +30,13 @@ FreeBusy::FreeBusy()
{
}
-FreeBusy::FreeBusy(const QDateTime &start, const QDateTime &end)
+FreeBusy::FreeBusy(const TQDateTime &start, const TQDateTime &end)
{
setDtStart(start);
setDtEnd(end);
}
-FreeBusy::FreeBusy( Calendar *calendar, const QDateTime &start, const QDateTime &end )
+FreeBusy::FreeBusy( Calendar *calendar, const TQDateTime &start, const TQDateTime &end )
{
kdDebug(5800) << "FreeBusy::FreeBusy" << endl;
mCalendar = calendar;
@@ -49,9 +49,9 @@ FreeBusy::FreeBusy( Calendar *calendar, const QDateTime &start, const QDateTime
int extraDays, i, x, duration;
duration = start.daysTo(end);
- QDate day;
- QDateTime tmpStart;
- QDateTime tmpEnd;
+ TQDate day;
+ TQDateTime tmpStart;
+ TQDateTime tmpEnd;
// Loops through every event in the calendar
Event::List::ConstIterator it;
for( it = eventList.begin(); it != eventList.end(); ++it ) {
@@ -68,8 +68,8 @@ FreeBusy::FreeBusy( Calendar *calendar, const QDateTime &start, const QDateTime
floatingEvent = new Event( *event );
// Set the start and end times to be on midnight
- QDateTime start( floatingEvent->dtStart().date(), QTime( 0, 0 ) );
- QDateTime end( floatingEvent->dtEnd().date(), QTime( 23, 59, 59, 999 ) );
+ TQDateTime start( floatingEvent->dtStart().date(), TQTime( 0, 0 ) );
+ TQDateTime end( floatingEvent->dtEnd().date(), TQTime( 23, 59, 59, 999 ) );
floatingEvent->setFloats( false );
floatingEvent->setDtStart( start );
floatingEvent->setDtEnd( end );
@@ -134,13 +134,13 @@ FreeBusy::~FreeBusy()
{
}
-bool FreeBusy::setDtEnd( const QDateTime &end )
+bool FreeBusy::setDtEnd( const TQDateTime &end )
{
mDtEnd = end;
return true;
}
-QDateTime FreeBusy::dtEnd() const
+TQDateTime FreeBusy::dtEnd() const
{
return mDtEnd;
}
@@ -150,9 +150,9 @@ PeriodList FreeBusy::busyPeriods() const
return mBusyPeriods;
}
-bool FreeBusy::addLocalPeriod(const QDateTime &eventStart, const QDateTime &eventEnd ) {
- QDateTime tmpStart;
- QDateTime tmpEnd;
+bool FreeBusy::addLocalPeriod(const TQDateTime &eventStart, const TQDateTime &eventEnd ) {
+ TQDateTime tmpStart;
+ TQDateTime tmpEnd;
//Check to see if the start *or* end of the event is
//between the start and end of the freebusy dates.
@@ -197,13 +197,13 @@ void FreeBusy::addPeriods(const PeriodList &list )
sortList();
}
-void FreeBusy::addPeriod(const QDateTime &start, const QDateTime &end)
+void FreeBusy::addPeriod(const TQDateTime &start, const TQDateTime &end)
{
mBusyPeriods.append( Period(start, end) );
sortList();
}
-void FreeBusy::addPeriod( const QDateTime &start, const Duration &dur )
+void FreeBusy::addPeriod( const TQDateTime &start, const Duration &dur )
{
mBusyPeriods.append( Period(start, dur) );
sortList();
@@ -217,8 +217,8 @@ void FreeBusy::merge( FreeBusy *freeBusy )
if ( freeBusy->dtEnd() > dtEnd() )
setDtEnd( freeBusy->dtEnd() );
- QValueList<Period> periods = freeBusy->busyPeriods();
- QValueList<Period>::ConstIterator it;
+ TQValueList<Period> periods = freeBusy->busyPeriods();
+ TQValueList<Period>::ConstIterator it;
for ( it = periods.begin(); it != periods.end(); ++it )
addPeriod( (*it).start(), (*it).end() );
}