diff options
| author | Chris Adams <christopher.adams@nokia.com> | 2010-10-06 13:24:26 +1000 |
|---|---|---|
| committer | Chris Adams <christopher.adams@nokia.com> | 2010-10-06 13:24:26 +1000 |
| commit | 4626c71be4e2d3bf74bdccd752848c56eeeab16e (patch) | |
| tree | ccece7a8a4dca85439cfb5165e5baedfa35804b7 /doc/src/snippets/qtorganizerdocsample/qtorganizerdocsample.cpp | |
| parent | caee83d15a000e6a20f8634cbee3f29d6db2dfbf (diff) | |
Remove supportedDataTypes() function, rename some things
Renamed some fields in QOrganizerItemLocation, and removed the address
field. Removed supportedDataTypes() function from manager, and removed
the default parameter to the detail definition related functions, in
the organizer API.
Diffstat (limited to 'doc/src/snippets/qtorganizerdocsample/qtorganizerdocsample.cpp')
| -rw-r--r-- | doc/src/snippets/qtorganizerdocsample/qtorganizerdocsample.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/doc/src/snippets/qtorganizerdocsample/qtorganizerdocsample.cpp b/doc/src/snippets/qtorganizerdocsample/qtorganizerdocsample.cpp index 60e842dc90..e75c8af9fc 100644 --- a/doc/src/snippets/qtorganizerdocsample/qtorganizerdocsample.cpp +++ b/doc/src/snippets/qtorganizerdocsample/qtorganizerdocsample.cpp @@ -82,7 +82,7 @@ void snippets() QOrganizerEvent recEvent; recEvent.setRecurrenceDates(rDates); recEvent.setPriority(QOrganizerItemPriority::HighPriority); - recEvent.setLocationName("Meeting Room 8"); + recEvent.setLocation("Meeting Room 8"); recEvent.setDescription("A meeting every wednesday to discuss the vitally important topic of marshmallows"); recEvent.setDisplayLabel("Marshmallow Conference"); if (!defaultManager.saveItem(&recEvent)) @@ -126,12 +126,7 @@ foreach(const QOrganizerItem& currInst, instances) //! [Editing a non-recurrent entry] //! [Retrieving any entry (not occurrence) which matches a search criteria] - // XXX TODO: make this more convenient. - // QOrganizerItemLocation::matchLocationName("Meeting Room 8") ? - QOrganizerItemDetailFilter locationFilter; - locationFilter.setDetailDefinitionName(QOrganizerItemLocation::DefinitionName, QOrganizerItemLocation::FieldLocationName); - locationFilter.setValue("Meeting Room 8"); - QList<QOrganizerItem> entries = defaultManager.items(locationFilter); + QList<QOrganizerItem> entries = defaultManager.items(QOrganizerItemLocation::match("Meeting Room 8")); //! [Retrieving any entry (not occurrence) which matches a search criteria] //! [Creating an exception to a particular recurrent event] |
