| 257 | } |
| 258 | |
| 259 | bool Utils::checkAnyState(NodeItem *item, ItemState state) |
| 260 | { |
| 261 | if (item->itemNode->asFileNode()) { |
| 262 | return item->state == state; |
| 263 | } else if (item->hasChildren()) { |
| 264 | for (int i = 0; i < item->rowCount(); ++i) { |
| 265 | if (checkAnyState(dynamic_cast<NodeItem *>(item->child(i)), state)) |
| 266 | return true; |
| 267 | } |
| 268 | } |
| 269 | return false; |
| 270 | } |
| 271 | |
| 272 | bool Utils::checkAllState(NodeItem *item, ItemState state) |
| 273 | { |
nothing calls this directly
no test coverage detected