| 87 | } |
| 88 | |
| 89 | NodeGraphSimpleTextItem::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 | |
| 105 | NodeGraphSimpleTextItem::~NodeGraphSimpleTextItem() |
| 106 | { |
nothing calls this directly
no test coverage detected