From d9680ead8099df9a2b06bfed61a62923778996f2 Mon Sep 17 00:00:00 2001 From: Frank Reininghaus Date: Tue, 15 Jan 2013 18:50:21 +0100 Subject: Re-organise the sorting code The KFileItemModel-specific parts are now separated from the generic ones, like the parallel sorting implementation. REVIEW: 108386 --- src/kitemviews/kfileitemmodel.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/kitemviews/kfileitemmodel.h') diff --git a/src/kitemviews/kfileitemmodel.h b/src/kitemviews/kfileitemmodel.h index 75fbb7075..304161a02 100644 --- a/src/kitemviews/kfileitemmodel.h +++ b/src/kitemviews/kfileitemmodel.h @@ -341,6 +341,12 @@ private: */ bool lessThan(const ItemData* a, const ItemData* b) const; + /** + * Sorts the items between \a begin and \a end using the comparison + * function lessThan(). + */ + void sort(QList::iterator begin, QList::iterator end) const; + /** * Helper method for lessThan() and expandedParentsCountCompare(): Compares * the passed item-data using m_sortRole as criteria. Both items must @@ -477,7 +483,6 @@ private: QSet m_urlsToExpand; friend class KFileItemModelLessThan; // Accesses lessThan() method - friend class KFileItemModelSortAlgorithm; // Accesses NameRole friend class KFileItemModelRolesUpdater; // Accesses emitSortProgress() method friend class KFileItemModelTest; // For unit testing friend class KFileItemListViewTest; // For unit testing -- cgit v1.3.1