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

Method restore

bt_editor/models/SubtreeNodeModel.cpp:60–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60void SubtreeNodeModel::restore(const QJsonObject &modelJson)
61{
62 if( registrationName() != modelJson["name"].toString() )
63 {
64 throw std::runtime_error(" error restoring: different registration_name");
65 }
66 QString alias = modelJson["alias"].toString();
67 setInstanceName( alias );
68 setExpanded( modelJson["expanded"].toBool() );
69}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected