MCPcopy Create free account
hub / github.com/KDE/okular / Document

Method Document

core/document.cpp:2224–2239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2222}
2223
2224Document::Document(QWidget *widget)
2225 : QObject(nullptr)
2226 , d(new DocumentPrivate(this))
2227{
2228 d->m_widget = widget;
2229 d->m_bookmarkManager = new BookmarkManager(d);
2230 d->m_viewportIterator = d->m_viewportHistory.insert(d->m_viewportHistory.end(), DocumentViewport());
2231 d->m_undoStack = new QUndoStack(this);
2232
2233 connect(SettingsCore::self(), &SettingsCore::configChanged, this, [this] { d->_o_configChanged(); });
2234 connect(d->m_undoStack, &QUndoStack::canUndoChanged, this, &Document::canUndoChanged);
2235 connect(d->m_undoStack, &QUndoStack::canRedoChanged, this, &Document::canRedoChanged);
2236 connect(d->m_undoStack, &QUndoStack::cleanChanged, this, &Document::undoHistoryCleanChanged);
2237
2238 qRegisterMetaType<Okular::FontInfo>();
2239}
2240
2241Document::~Document()
2242{

Callers

nothing calls this directly

Calls 3

_o_configChangedMethod · 0.80
DocumentViewportClass · 0.70
endMethod · 0.45

Tested by

no test coverage detected