MCPcopy Create free account
hub / github.com/KDAB/GammaRay / setDocument

Method setDocument

plugins/textdocumentinspector/textdocumentmodel.cpp:49–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49void TextDocumentModel::setDocument(QTextDocument *doc)
50{
51 if (m_document)
52 disconnect(m_document, &QTextDocument::contentsChanged, this, &TextDocumentModel::documentChanged);
53
54 m_document = doc;
55 fillModel();
56
57 if (m_document)
58 connect(m_document, &QTextDocument::contentsChanged, this, &TextDocumentModel::documentChanged);
59}
60
61void TextDocumentModel::documentChanged()
62{

Callers 2

documentSelectedMethod · 0.80
documentSelectedMethod · 0.80

Calls

no outgoing calls

Tested by 2

documentSelectedMethod · 0.64
documentSelectedMethod · 0.64