From 98139616ac65bb0b96352da03d2c106bd9c8f8bb Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Mon, 3 Nov 2008 08:20:41 +0000 Subject: * 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 --- src/dolphinview.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/dolphinview.h') 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 -- cgit v1.3