MCPcopy Create free account
hub / github.com/KDE/krusader / createStatus

Method createStatus

app/DiskUsage/diskusage.cpp:707–724  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

705}
706
707void 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
726void DiskUsage::changeDirectory(Directory *dir)
727{

Callers

nothing calls this directly

Calls 4

ownSizeMethod · 0.80
setPathMethod · 0.45
pathMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected