| 114 | } |
| 115 | |
| 116 | static 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 | |
| 130 | void AnnotationModelPrivate::notifySetup(const QList<Okular::Page *> &pages, int setupFlags) |
| 131 | { |
no test coverage detected