summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/qtorganizerdocsample/qtorganizerdocsample.cpp
diff options
context:
space:
mode:
authorChris Adams <christopher.adams@nokia.com>2010-05-12 16:50:02 +1000
committerChris Adams <christopher.adams@nokia.com>2010-05-12 16:50:02 +1000
commitd932600523ddf155cfab7160565619efcdd804a0 (patch)
treecc411bbbb89d85cfe68cfaa6e5e6549095b3006a /doc/src/snippets/qtorganizerdocsample/qtorganizerdocsample.cpp
parent6bde29dffc6a756934795625736b4f3dfeb18afd (diff)
Add some convenience functions (not implemented)
in QOrganizerItem (displayLabel() and description()) and in QOrganizerEvent (priority() and location related). Also added an enum to the priority detail, to allow sorting by priority.
Diffstat (limited to 'doc/src/snippets/qtorganizerdocsample/qtorganizerdocsample.cpp')
-rw-r--r--doc/src/snippets/qtorganizerdocsample/qtorganizerdocsample.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/src/snippets/qtorganizerdocsample/qtorganizerdocsample.cpp b/doc/src/snippets/qtorganizerdocsample/qtorganizerdocsample.cpp
index f172fafe19..23ed01eb51 100644
--- a/doc/src/snippets/qtorganizerdocsample/qtorganizerdocsample.cpp
+++ b/doc/src/snippets/qtorganizerdocsample/qtorganizerdocsample.cpp
@@ -70,10 +70,10 @@ void snippets()
//! [Creating a recurrent event]
QOrganizerEvent recEvent;
/*recEvent.setRecurrence(7pm to 8pm every wednesday for three months);*/
- recEvent.setPriority(QOrganizerItem::HighPriority);
- recEvent.setLocation("Meeting Room 8");
+ recEvent.setPriority(QOrganizerItemPriority::HighPriority);
+ recEvent.setLocationName("Meeting Room 8");
recEvent.setDescription("A meeting every wednesday to discuss the vitally important topic of marshmallows");
- recEvent.setLabel("Marshmallow Conference");
+ recEvent.setDisplayLabel("Marshmallow Conference");
defaultManager.saveItem(&recEvent);
//! [Creating a recurrent event]
@@ -82,7 +82,7 @@ void snippets()
// QOIM::itemInstances(item, startDateTime, endDateTime, count) ?
// QOI::instanceFilter(start, end) ?
QOrganizerItemDetailFilter dfil;
- dfil.setDetailDefinition(QOrganizerItemParentInfo::DefinitionName, QOrganizerItemParentInfo::FieldParentId);
+ dfil.setDetailDefinitionName(QOrganizerItemParentInfo::DefinitionName, QOrganizerItemParentInfo::FieldParentId);
dfil.setValue(recEvent.id());
QOrganizerItemPeriodFilter pfil;