| 493 | } |
| 494 | |
| 495 | InstancePtr InstanceList::getInstanceById(QString instId) const |
| 496 | { |
| 497 | if(instId.isEmpty()) |
| 498 | return InstancePtr(); |
| 499 | for(auto & inst: m_instances) |
| 500 | { |
| 501 | if (inst->id() == instId) |
| 502 | { |
| 503 | return inst; |
| 504 | } |
| 505 | } |
| 506 | return InstancePtr(); |
| 507 | } |
| 508 | |
| 509 | QModelIndex InstanceList::getInstanceIndexById(const QString &id) const |
| 510 | { |
no test coverage detected