MCPcopy Create free account
hub / github.com/TeXworks/texworks / initFromDocument

Method initFromDocument

modules/QtPDF/src/PDFDocumentView.cpp:2525–2533  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2523}
2524
2525void 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
2535void PDFOptionalContentInfoWidget::clear()
2536{

Callers 1

dockWidgetMethod · 0.45

Calls 1

optionalContentModelMethod · 0.45

Tested by

no test coverage detected