| 126 | } |
| 127 | |
| 128 | void Widget3DWindowModel::sourceModelRowsInserted(const QModelIndex &parent, int first, int last) |
| 129 | { |
| 130 | for (int i = first; i <= last; ++i) { |
| 131 | const QModelIndex srcIdx = sourceModel()->index(i, 0, parent); |
| 132 | if (srcIdx.data(Widget3DModel::IsWindowRole).toBool()) { |
| 133 | const int pos = mNodes.size(); |
| 134 | beginInsertRows(QModelIndex(), pos, pos); |
| 135 | mNodes.push_back(new WindowNode(srcIdx)); |
| 136 | endInsertRows(); |
| 137 | } |
| 138 | } |
| 139 | } |
| 140 | |
| 141 | void Widget3DWindowModel::sourceModelRowsRemoved() |
| 142 | { |
nothing calls this directly
no test coverage detected