| 1085 | } |
| 1086 | |
| 1087 | void |
| 1088 | MultiInstancePanel::onSettingsPanelClosed(bool closed) |
| 1089 | { |
| 1090 | std::list<Node*> selection; |
| 1091 | |
| 1092 | getSelectedInstances(&selection); |
| 1093 | |
| 1094 | std::list<Node*>::iterator next = selection.begin(); |
| 1095 | if ( next != selection.end() ) { |
| 1096 | ++next; |
| 1097 | } |
| 1098 | for (std::list<Node*>::iterator it = selection.begin(); |
| 1099 | it != selection.end(); |
| 1100 | ++it) { |
| 1101 | if (closed) { |
| 1102 | (*it)->hideKeyframesFromTimeline( next == selection.end() ); |
| 1103 | } else { |
| 1104 | (*it)->showKeyframesOnTimeline( next == selection.end() ); |
| 1105 | } |
| 1106 | |
| 1107 | // increment for next iteration |
| 1108 | if ( next != selection.end() ) { |
| 1109 | ++next; |
| 1110 | } |
| 1111 | } // for(it) |
| 1112 | } |
| 1113 | |
| 1114 | void |
| 1115 | MultiInstancePanel::onSelectionChanged(const QItemSelection & newSelection, |
nothing calls this directly
no test coverage detected