┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinview.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2008-11-03 08:20:41 +0000
committerPeter Penz <[email protected]>2008-11-03 08:20:41 +0000
commit98139616ac65bb0b96352da03d2c106bd9c8f8bb (patch)
treed91974a27087cf63818c2439aa79613a10b71841 /src/dolphinview.h
parentb08ed55218cce6609ac4296b0507864833140f05 (diff)
* Show the total size of files in the statusbar (thanks to Bram Schoenmakers for the patch).
* Changed the format of the string to be consistent with the format used when doing a selection. Maybe it would be useful adjusting KIO::itemsSummaryString() instead using a custom output format. Currently KIO::itemsSummaryString() shows "20 Items (5 Files, 15 Folders) - (200 KiB Total)", which is quite confusing IMO, as the total size is only counted for the files. Dolphin currently shows: "15 Folders, 5 Files (200 KiB)" BUG: 161462 svn path=/trunk/KDE/kdebase/apps/; revision=879405
Diffstat (limited to 'src/dolphinview.h')
-rw-r--r--src/dolphinview.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dolphinview.h b/src/dolphinview.h
index a2d5f93cf..955f974d8 100644
--- a/src/dolphinview.h
+++ b/src/dolphinview.h
@@ -302,11 +302,12 @@ public:
/**
* Calculates the number of currently shown files into
* \a fileCount and the number of folders into \a folderCount.
+ * The size of all files is written into \a totalFileSize.
* It is recommend using this method instead of asking the
* directory lister or the model directly, as it takes
* filtering and hierarchical previews into account.
*/
- void calculateItemCount(int& fileCount, int& folderCount) const;
+ void calculateItemCount(int& fileCount, int& folderCount, KIO::filesize_t& totalFileSize) const;
/**
* Returns a textual representation of the state of the current