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

Method backend

modules/QtPDF/src/PDFBackend.cpp:41–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39#endif
40 }
41 BackendInterface * backend(const QString & name = {})
42 {
43 if (!name.isEmpty()) {
44 for (const std::unique_ptr<BackendInterface> & b : m_backendInterfaces) {
45 if (b && b->name() == name)
46 return b.get();
47 }
48 }
49 return (m_backendInterfaces.empty() ? nullptr : m_backendInterfaces.front().get());
50 }
51 QStringList backendNames() const
52 {
53 QStringList rv;

Callers 1

newDocumentMethod · 0.80

Calls 1

nameMethod · 0.45

Tested by

no test coverage detected