| 1002 | } |
| 1003 | |
| 1004 | int |
| 1005 | MultiInstancePanel::getNodeIndex(const NodePtr & node) const |
| 1006 | { |
| 1007 | int i = 0; |
| 1008 | Nodes::iterator it = _imp->instances.begin(); |
| 1009 | |
| 1010 | for (; it != _imp->instances.end(); ++it, ++i) { |
| 1011 | if (it->first.lock() == node) { |
| 1012 | return i; |
| 1013 | } |
| 1014 | } |
| 1015 | |
| 1016 | return -1; |
| 1017 | } |
| 1018 | |
| 1019 | void |
| 1020 | MultiInstancePanel::onDeleteKeyPressed() |
no test coverage detected