From eadbf920b5dffdf2d1548240c25ec2eaf835aad5 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Fri, 4 Nov 2011 21:54:01 +0100 Subject: Don't use mixed units in size-column of details-view This makes it tricky to compare the filesizes without adjusting the sort-order, so now all sizes in the size-column are shown in KiB or KB (dependent on the KLocale setting). BUG: 219932 FIXED-IN: 4.8.0 Related fixes: - Stay consistent with the rounding when using the KiB/KB unit in the statusbar. - Fix sorting-by-size issue for folders - Show "Unknown" in the size-column when the number of items cannot be determined. --- src/views/dolphinview.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/views/dolphinview.h') diff --git a/src/views/dolphinview.h b/src/views/dolphinview.h index c681737c6..2bbdf2b71 100644 --- a/src/views/dolphinview.h +++ b/src/views/dolphinview.h @@ -732,6 +732,12 @@ private: QByteArray sortRoleForSorting(Sorting sorting) const; Sorting sortingForSortRole(const QByteArray& sortRole) const; + /** + * Returns the text for the filesize by converting it to the best fitting + * unit. + */ + static QString fileSizeText(KIO::filesize_t fileSize); + private: bool m_active : 1; bool m_tabsForFiles : 1; -- cgit v1.3