| 2523 | } |
| 2524 | |
| 2525 | void PDFOptionalContentInfoWidget::initFromDocument(const QWeakPointer<Backend::Document> newDoc) |
| 2526 | { |
| 2527 | _doc = newDoc; |
| 2528 | QSharedPointer<Backend::Document> doc{newDoc.toStrongRef()}; |
| 2529 | if (!doc) { |
| 2530 | return; |
| 2531 | } |
| 2532 | _list->setModel(doc->optionalContentModel()); |
| 2533 | } |
| 2534 | |
| 2535 | void PDFOptionalContentInfoWidget::clear() |
| 2536 | { |
no test coverage detected