| 705 | } |
| 706 | |
| 707 | void DiskUsage::createStatus() |
| 708 | { |
| 709 | Directory *dirEntry = currentDirectory; |
| 710 | |
| 711 | if (dirEntry == nullptr) |
| 712 | return; |
| 713 | |
| 714 | QUrl url = baseURL; |
| 715 | if (dirEntry != root) { |
| 716 | url = url.adjusted(QUrl::StripTrailingSlash); |
| 717 | url.setPath(url.path() + '/' + (dirEntry->directory())); |
| 718 | } |
| 719 | |
| 720 | emit status(i18n("Current folder:%1, Total size:%2, Own size:%3", |
| 721 | url.toDisplayString(QUrl::PreferLocalFile | QUrl::StripTrailingSlash), |
| 722 | ' ' + KrPermHandler::parseSize(dirEntry->size()), |
| 723 | ' ' + KrPermHandler::parseSize(dirEntry->ownSize()))); |
| 724 | } |
| 725 | |
| 726 | void DiskUsage::changeDirectory(Directory *dir) |
| 727 | { |