From 1041f340a2ddb634476c5d84585a56c29e5a70fd Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Fri, 3 Feb 2012 23:07:33 +0100 Subject: Show the value "Unknown" for the item-count only after it has been verified During determining the item-count for directories just show an empty string until either the item-count has been calculated or if the item-count is unknown. Thanks to Nikita Skovoroda for the initial proof-of-concept patch. BUG: 291823 FIXED-IN: 4.8.1 --- src/kitemviews/kfileitemmodel.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/kitemviews/kfileitemmodel.h') diff --git a/src/kitemviews/kfileitemmodel.h b/src/kitemviews/kfileitemmodel.h index d819c3734..ff816c85c 100644 --- a/src/kitemviews/kfileitemmodel.h +++ b/src/kitemviews/kfileitemmodel.h @@ -330,12 +330,6 @@ private: */ KFileItemList childItems(const KFileItem& item) const; - /** - * Helper method for sortRoleCompare(). - * @return 0 if both sizes are equal, +1 if a > b and -1 if a < b. - */ - static int fileSizeCompare(KIO::filesize_t a, KIO::filesize_t b); - private: QWeakPointer m_dirLister; -- cgit v1.3.1