MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / NodeGraphSimpleTextItem

Method NodeGraphSimpleTextItem

Gui/NodeGraphTextItem.cpp:89–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87}
88
89NodeGraphSimpleTextItem::NodeGraphSimpleTextItem(NodeGraph* graph,
90 QGraphicsItem* parent,
91 bool alwaysDrawText)
92 : QGraphicsSimpleTextItem(parent)
93 , _graph(graph)
94 , _alwaysDrawText(alwaysDrawText)
95{
96 QFont f = font();
97 bool antialias = appPTR->getCurrentSettings()->isNodeGraphAntiAliasingEnabled();
98
99 if (!antialias) {
100 f.setStyleStrategy(QFont::NoAntialias);
101 }
102 setFont(f);
103}
104
105NodeGraphSimpleTextItem::~NodeGraphSimpleTextItem()
106{

Callers

nothing calls this directly

Calls 3

fontFunction · 0.85
getCurrentSettingsMethod · 0.80

Tested by

no test coverage detected