MCPcopy Create free account
hub / github.com/OpenBoard-org/OpenBoard / copyPage

Method copyPage

src/document/UBDocument.cpp:120–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118}
119
120void UBDocument::copyPage(int fromIndex, std::shared_ptr<UBDocumentProxy> to, int toIndex)
121{
122 UBPersistenceManager::persistenceManager()->copyDocumentScene(mProxy, fromIndex, to, toIndex);
123
124 const auto toDocument = findDocument(to);
125
126 if (toDocument)
127 {
128 toDocument->mThumbnailScene->insertThumbnail(toIndex);
129 }
130}
131
132void UBDocument::insertPage(std::shared_ptr<UBGraphicsScene> scene, int index, bool persist, bool deleting)
133{

Callers 1

foreachFunction · 0.45

Calls 2

copyDocumentSceneMethod · 0.80
insertThumbnailMethod · 0.45

Tested by

no test coverage detected