| 270 | } |
| 271 | |
| 272 | bool Utils::checkAllState(NodeItem *item, ItemState state) |
| 273 | { |
| 274 | if (item->itemNode->asFileNode()) { |
| 275 | return item->state == state; |
| 276 | } else if (item->hasChildren()) { |
| 277 | for (int i = 0; i < item->rowCount(); ++i) { |
| 278 | if (!checkAllState(dynamic_cast<NodeItem *>(item->child(i)), state)) |
| 279 | return false; |
| 280 | } |
| 281 | return true; |
| 282 | } |
| 283 | return false; |
| 284 | } |
nothing calls this directly
no test coverage detected