| 455 | } |
| 456 | |
| 457 | void DiskUsage::clear() |
| 458 | { |
| 459 | baseURL = QUrl(); |
| 460 | emit clearing(); |
| 461 | |
| 462 | QHashIterator<File *, Properties *> lit(propertyMap); |
| 463 | while (lit.hasNext()) |
| 464 | delete lit.next().value(); |
| 465 | |
| 466 | propertyMap.clear(); |
| 467 | contentMap.clear(); |
| 468 | if (root) |
| 469 | delete root; |
| 470 | root = currentDirectory = nullptr; |
| 471 | } |
| 472 | |
| 473 | int DiskUsage::calculateSizes(Directory *dirEntry, bool emitSig, int depth) |
| 474 | { |
no test coverage detected