diff options
| author | Charles Yin <charles.yin@nokia.com> | 2010-10-05 13:12:09 +1000 |
|---|---|---|
| committer | Charles Yin <charles.yin@nokia.com> | 2010-10-05 13:12:09 +1000 |
| commit | f79fb7570f3ae8087b6ce0b3900ec29845cb2c3c (patch) | |
| tree | 399bb44b18d750e19c9e87607397d7e2f6e031dd /doc/src/snippets/qtorganizerdocsample/qtorganizerdocsample.cpp | |
| parent | caee83d15a000e6a20f8634cbee3f29d6db2dfbf (diff) | |
Tweak the recurrence rule class by according to the code review.
1) WeekStart -> FirstDayOfWeek
2) Remove comments from .h file because it's in .cpp
3) count() should make -1 mean infinite (be consistent with maxCount)
4) replace setCount, setEndDate with setLimit(QDate), setLimit(int), limitCount, limitDate, limitType()
5) Change QList<Qt::DayOfWeek> and QList<int> to QSets.
6) setMonths -> setMonthsOfYear
7) Remove variantValues functions, make it metatype declared
Diffstat (limited to 'doc/src/snippets/qtorganizerdocsample/qtorganizerdocsample.cpp')
| -rw-r--r-- | doc/src/snippets/qtorganizerdocsample/qtorganizerdocsample.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/src/snippets/qtorganizerdocsample/qtorganizerdocsample.cpp b/doc/src/snippets/qtorganizerdocsample/qtorganizerdocsample.cpp index 60e842dc90..8e60641887 100644 --- a/doc/src/snippets/qtorganizerdocsample/qtorganizerdocsample.cpp +++ b/doc/src/snippets/qtorganizerdocsample/qtorganizerdocsample.cpp @@ -75,7 +75,7 @@ void snippets() QDate secondOccDate = startDateTime.date().addDays(14); QDate thirdOccDate = startDateTime.date().addDays(21); QDateTime endDateTime = startDateTime.addDays(28); - QList<QDate> rDates; + QSet<QDate> rDates; rDates << firstOccDate << secondOccDate << thirdOccDate; //! [Creating a recurrent event] |
