From f79fb7570f3ae8087b6ce0b3900ec29845cb2c3c Mon Sep 17 00:00:00 2001 From: Charles Yin Date: Tue, 5 Oct 2010 13:12:09 +1000 Subject: 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 and QList to QSets. 6) setMonths -> setMonthsOfYear 7) Remove variantValues functions, make it metatype declared --- doc/src/snippets/qtorganizerdocsample/qtorganizerdocsample.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/src/snippets/qtorganizerdocsample/qtorganizerdocsample.cpp') 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 rDates; + QSet rDates; rDates << firstOccDate << secondOccDate << thirdOccDate; //! [Creating a recurrent event] -- cgit v1.2.3