| 554 | } |
| 555 | |
| 556 | int InstanceList::getInstIndex(BaseInstance* inst) const |
| 557 | { |
| 558 | int count = m_instances.count(); |
| 559 | for (int i = 0; i < count; i++) { |
| 560 | if (inst == m_instances[i].get()) { |
| 561 | return i; |
| 562 | } |
| 563 | } |
| 564 | return -1; |
| 565 | } |
| 566 | |
| 567 | void InstanceList::propertiesChanged(BaseInstance* inst) |
| 568 | { |