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

Method DocumentItem

mobile/components/documentitem.cpp:23–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21#include "gui/signatureguiutils.h"
22
23DocumentItem::DocumentItem(QObject *parent)
24 : QObject(parent)
25 , m_thumbnailObserver(nullptr)
26 , m_pageviewObserver(nullptr)
27 , m_searchInProgress(false)
28{
29 qmlRegisterUncreatableType<TOCModel>("org.kde.okular.private", 1, 0, "TOCModel", QStringLiteral("Do not create objects of this type."));
30 qmlRegisterUncreatableType<SignatureModel>("org.kde.okular.private", 1, 0, "SignatureModel", QStringLiteral("Do not create objects of this type."));
31 Okular::Settings::instance(QStringLiteral("okularproviderrc"));
32 m_document = new Okular::Document(nullptr);
33 m_tocModel = new TOCModel(m_document, this);
34 m_signaturesModel = new SignatureModel(m_document, this);
35
36 connect(m_document, &Okular::Document::searchFinished, this, &DocumentItem::searchFinished);
37 connect(m_document->bookmarkManager(), &Okular::BookmarkManager::bookmarksChanged, this, &DocumentItem::bookmarkedPagesChanged);
38 connect(m_document->bookmarkManager(), &Okular::BookmarkManager::bookmarksChanged, this, &DocumentItem::bookmarksChanged);
39 connect(m_document, &Okular::Document::error, this, &DocumentItem::error);
40 connect(m_document, &Okular::Document::warning, this, &DocumentItem::warning);
41 connect(m_document, &Okular::Document::notice, this, &DocumentItem::notice);
42}
43
44DocumentItem::~DocumentItem()
45{

Callers

nothing calls this directly

Calls 1

bookmarkManagerMethod · 0.80

Tested by

no test coverage detected