Replace deprecated Akonadi::Collection::setParent() with Akonadi::Collection::setParentCollection().