MCPcopy Create free account
hub / github.com/BehaviorTree/Groot / save

Method save

QtNodeEditor/src/Node.cpp:48–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46~Node() = default;
47
48QJsonObject
49Node::
50save() const
51{
52 QJsonObject nodeJson;
53
54 nodeJson["id"] = _uid.toString();
55
56 nodeJson["model"] = _nodeDataModel->save();
57
58 double width = _nodeGraphicsObject->boundingRect().width();
59
60 QJsonObject obj;
61 obj["x"] = _nodeGraphicsObject->pos().x() + width*0.5;
62 obj["y"] = _nodeGraphicsObject->pos().y();
63 nodeJson["position"] = obj;
64
65 return nodeJson;
66}
67
68
69void

Callers

nothing calls this directly

Calls 1

saveMethod · 0.45

Tested by

no test coverage detected