| 298 | } |
| 299 | |
| 300 | void ProjectTree::expandedProjectAll(const QStandardItem *root) |
| 301 | { |
| 302 | if (!root) |
| 303 | return; |
| 304 | |
| 305 | expand(d->itemModel->indexFromItem(root)); |
| 306 | if (root->hasChildren()) { |
| 307 | for (int i = 0; i < root->rowCount(); i++) { |
| 308 | QStandardItem *childitem = root->child(i); |
| 309 | expandedProjectAll(childitem); |
| 310 | } |
| 311 | } |
| 312 | } |
| 313 | |
| 314 | void ProjectTree::restoreExpandState(QStandardItem *item) |
| 315 | { |
nothing calls this directly
no test coverage detected