From 4626c71be4e2d3bf74bdccd752848c56eeeab16e Mon Sep 17 00:00:00 2001 From: Chris Adams Date: Wed, 6 Oct 2010 13:24:26 +1000 Subject: 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. --- doc/src/snippets/qtorganizerdocsample/qtorganizerdocsample.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (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..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 entries = defaultManager.items(locationFilter); + QList 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] -- cgit v1.2.3