| 58 | } |
| 59 | |
| 60 | void 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected