diff options
| author | Peter Penz <[email protected]> | 2011-11-04 21:54:01 +0100 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2011-11-04 21:58:32 +0100 |
| commit | eadbf920b5dffdf2d1548240c25ec2eaf835aad5 (patch) | |
| tree | fec0857c4a8b95cdaaa6756f50b9412c35b58668 /src/views/dolphinview.h | |
| parent | d27f776cd2675e67b70556ad4033230435d89d8e (diff) | |
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.
Diffstat (limited to 'src/views/dolphinview.h')
| -rw-r--r-- | src/views/dolphinview.h | 6 |
1 files changed, 6 insertions, 0 deletions
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; |
