implement context item in node view

This commit is contained in:
itsmattkc
2021-11-10 16:33:59 -08:00
parent 010dd3a336
commit 9c650883c2
12 changed files with 347 additions and 11 deletions
+4
View File
@@ -406,6 +406,10 @@ QVariant NodeViewItem::itemChange(QGraphicsItem::GraphicsItemChange change, cons
{
if (change == ItemPositionHasChanged && node_) {
ReadjustAllEdges();
if (NodeViewContext *ctx = dynamic_cast<NodeViewContext*>(parentItem())) {
ctx->UpdateRect();
}
}
return QGraphicsItem::itemChange(change, value);