| 137 | } |
| 138 | |
| 139 | std::shared_ptr<UBGraphicsScene> UBDocument::createPage(int index, bool useUndoRedoStack) |
| 140 | { |
| 141 | auto scene = UBPersistenceManager::persistenceManager()->createDocumentSceneAt(mProxy, index, useUndoRedoStack); |
| 142 | |
| 143 | mThumbnailScene->insertThumbnail(index, scene); |
| 144 | |
| 145 | return scene; |
| 146 | } |
| 147 | |
| 148 | void UBDocument::persistPage(std::shared_ptr<UBGraphicsScene> scene, const int index, bool isAutomaticBackup, |
| 149 | bool forceImmediateSaving) |
no test coverage detected