/*!
    Sets the todo occurrence's parent to be the todo identified by the
    given \a parentId.
 */
void QOrganizerTodoOccurrence::setParentId(const QOrganizerItemId &parentId)
{
    QOrganizerItemParent origin = detail(QOrganizerItemDetail::TypeParent);
    origin.setParentId(parentId);
    saveDetail(&origin);
}
Esempio n. 2
0
/*!
  Sets the event occurrence's parent to be the event identified by the
  given \a parentId
  \since 1.1
 */
void QOrganizerEventOccurrence::setParentId(const QOrganizerItemId& parentId)
{
    QOrganizerItemParent origin = detail<QOrganizerItemParent>();
    origin.setParentId(parentId);
    saveDetail(&origin);
}