| 602 | } |
| 603 | |
| 604 | int InstanceList::getInstIndex(BaseInstance* inst) const |
| 605 | { |
| 606 | int count = m_instances.count(); |
| 607 | for (int i = 0; i < count; i++) { |
| 608 | if (inst == m_instances[i].get()) { |
| 609 | return i; |
| 610 | } |
| 611 | } |
| 612 | return -1; |
| 613 | } |
| 614 | |
| 615 | void InstanceList::propertiesChanged(BaseInstance* inst) |
| 616 | { |