-rw-r--r-- | libkcal/freebusy.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/libkcal/freebusy.cpp b/libkcal/freebusy.cpp index ba15d6d..e4e9ec9 100644 --- a/libkcal/freebusy.cpp +++ b/libkcal/freebusy.cpp | |||
@@ -21,6 +21,9 @@ | |||
21 | #include <kdebug.h> | 21 | #include <kdebug.h> |
22 | 22 | ||
23 | #include "freebusy.h" | 23 | #include "freebusy.h" |
24 | //Added by qt3to4: | ||
25 | #include <Q3ValueList> | ||
26 | #include <Q3PtrList> | ||
24 | 27 | ||
25 | using namespace KCal; | 28 | using namespace KCal; |
26 | 29 | ||
@@ -43,7 +46,7 @@ FreeBusy::FreeBusy( Calendar *calendar, const QDateTime &start, const QDateTime | |||
43 | setDtEnd(end); | 46 | setDtEnd(end); |
44 | 47 | ||
45 | //Gets all the events in the calendar | 48 | //Gets all the events in the calendar |
46 | QPtrList<Event> eventList = mCalendar->events(); | 49 | Q3PtrList<Event> eventList = mCalendar->events(); |
47 | Event *event; | 50 | Event *event; |
48 | 51 | ||
49 | int extraDays, i, x, duration; | 52 | int extraDays, i, x, duration; |
@@ -113,7 +116,7 @@ QDateTime FreeBusy::dtEnd() const | |||
113 | return mDtEnd; | 116 | return mDtEnd; |
114 | } | 117 | } |
115 | 118 | ||
116 | QValueList<Period> FreeBusy::busyPeriods() const | 119 | Q3ValueList<Period> FreeBusy::busyPeriods() const |
117 | { | 120 | { |
118 | return mBusyPeriods; | 121 | return mBusyPeriods; |
119 | } | 122 | } |
@@ -146,14 +149,14 @@ bool FreeBusy::addLocalPeriod(const QDateTime &eventStart, const QDateTime &even | |||
146 | return true; | 149 | return true; |
147 | } | 150 | } |
148 | 151 | ||
149 | FreeBusy::FreeBusy(QValueList<Period> busyPeriods) | 152 | FreeBusy::FreeBusy(Q3ValueList<Period> busyPeriods) |
150 | { | 153 | { |
151 | mBusyPeriods = busyPeriods; | 154 | mBusyPeriods = busyPeriods; |
152 | } | 155 | } |
153 | 156 | ||
154 | void FreeBusy::sortList() | 157 | void FreeBusy::sortList() |
155 | { | 158 | { |
156 | typedef QValueList<Period> PeriodList; | 159 | typedef Q3ValueList<Period> PeriodList; |
157 | 160 | ||
158 | PeriodList::Iterator tmpPeriod, earlyPeriod; | 161 | PeriodList::Iterator tmpPeriod, earlyPeriod; |
159 | PeriodList sortedList; | 162 | PeriodList sortedList; |