MCPcopy Create free account
hub / github.com/alpha-liu-01/SpeedyNote / invalidateDocCache

Method invalidateDocCache

source/objects/TextBoxObject.cpp:34–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32// ---------------------------------------------------------------------------
33
34void TextBoxObject::invalidateDocCache() const
35{
36 delete m_cachedDoc;
37 m_cachedDoc = nullptr;
38 m_cachedDocWidth = -1;
39 m_cachedText.clear();
40}
41
42QTextDocument* TextBoxObject::ensureDocCache(qreal width) const
43{

Callers 5

undoMethod · 0.80
redoMethod · 0.80
onTextChangedMethod · 0.80
onAlignmentChangedMethod · 0.80
onColorButtonClickedMethod · 0.80

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected