diff options
| author | Kevin Wu Won <kevin.wu-won@nokia.com> | 2010-10-08 14:56:29 +1000 |
|---|---|---|
| committer | Kevin Wu Won <kevin.wu-won@nokia.com> | 2010-10-08 14:56:29 +1000 |
| commit | 3e257b555c2592252117e9ce3c72a10635ba67b2 (patch) | |
| tree | 576ab7f90ef0c2dbb3899c3260ada2a4d6e68983 /doc/src/snippets/qtorganizerdocsample/qtorganizerdocsample.cpp | |
| parent | cc0d7d0674bbdaac67ff2c9cf9e14214e5dbbd46 (diff) | |
| parent | 1c9fcc348ded76bc87832ca0f00b795b1498391c (diff) | |
Merge branch '1.1' into new-renames
Diffstat (limited to 'doc/src/snippets/qtorganizerdocsample/qtorganizerdocsample.cpp')
| -rw-r--r-- | doc/src/snippets/qtorganizerdocsample/qtorganizerdocsample.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/doc/src/snippets/qtorganizerdocsample/qtorganizerdocsample.cpp b/doc/src/snippets/qtorganizerdocsample/qtorganizerdocsample.cpp index e75c8af9fc..5df7e5487c 100644 --- a/doc/src/snippets/qtorganizerdocsample/qtorganizerdocsample.cpp +++ b/doc/src/snippets/qtorganizerdocsample/qtorganizerdocsample.cpp @@ -93,11 +93,11 @@ void snippets() QList<QOrganizerItem> instances = defaultManager.itemInstances(recEvent, startDateTime, endDateTime); //! [Retrieving occurrences of a particular recurrent event within a time period] qDebug() << "dumping retrieved instances:"; -foreach(const QOrganizerItem& currInst, instances) -{ - dumpItem(currInst); - qDebug() << "...................."; -} + foreach(const QOrganizerItem& currInst, instances) + { + dumpItem(currInst); + qDebug() << "...................."; + } //! [Retrieving the next 5 occurrences of a particular recurrent event] @@ -131,6 +131,7 @@ foreach(const QOrganizerItem& currInst, instances) //! [Creating an exception to a particular recurrent event] // the following line should be made simpler via QOIM::itemInstances(item, startDateTime, endDateTime, count)... + /* FIXME: correct the example QOrganizerEventOccurrence nextMarshmallowMeeting = QOrganizerEventOccurrence(defaultManager.itemInstances().value(0)); // should use dfil. nextMarshmallowMeeting.setStartDateTime(QDateTime::fromString("13.05.2010 18:00:00", "dd.MM.yy hh:mm:ss")); nextMarshmallowMeeting.setEndDateTime(QDateTime::fromString("13.05.2010 20:00:00", "dd.MM.yy hh:mm:ss")); @@ -139,6 +140,7 @@ foreach(const QOrganizerItem& currInst, instances) "to taste the results of the recipe that I will be presenting "\ "at the meeting."); defaultManager.saveItem(&nextMarshmallowMeeting); + */ //! [Creating an exception to a particular recurrent event] dumpItems(&defaultManager); |
