MCPcopy Create free account
hub / github.com/KDE/okular / updateAnnotationPointer

Function updateAnnotationPointer

part/annotationmodel.cpp:116–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114}
115
116static void updateAnnotationPointer(AnnItem *item, const QList<Okular::Page *> &pages)
117{
118 if (item->annotation) {
119 item->annotation = pages[item->page]->annotation(item->annotation->uniqueName());
120 if (!item->annotation) {
121 qWarning() << "Lost annotation on document save, something went wrong";
122 }
123 }
124
125 for (AnnItem *child : std::as_const(item->children)) {
126 updateAnnotationPointer(child, pages);
127 }
128}
129
130void AnnotationModelPrivate::notifySetup(const QList<Okular::Page *> &pages, int setupFlags)
131{

Callers 1

notifySetupMethod · 0.85

Calls 2

uniqueNameMethod · 0.80
annotationMethod · 0.45

Tested by

no test coverage detected