diff options
| author | Peter Penz <[email protected]> | 2012-02-23 17:26:51 +0100 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2012-02-23 17:28:03 +0100 |
| commit | 21a5a890b3010e591e139724d5c6f555df4481f9 (patch) | |
| tree | fb48c65173c9163cdf81c2bc8bc064af3ac0eff3 /src/kitemviews/kfileitemmodel.h | |
| parent | a6627b9f2345eac9cc650aa9f87f9c69db8c707f (diff) | |
Whitespace cleanups and documentation fixes
Diffstat (limited to 'src/kitemviews/kfileitemmodel.h')
| -rw-r--r-- | src/kitemviews/kfileitemmodel.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/kitemviews/kfileitemmodel.h b/src/kitemviews/kfileitemmodel.h index 6cc53f12a..bb77003c3 100644 --- a/src/kitemviews/kfileitemmodel.h +++ b/src/kitemviews/kfileitemmodel.h @@ -179,7 +179,7 @@ private slots: * and foldersFirst() settings. */ void resortAllItems(); - + void slotCompleted(); void slotCanceled(); void slotNewItems(const KFileItemList& items); @@ -219,10 +219,10 @@ private: QHash<QByteArray, QVariant> values; ItemData* parent; }; - + void insertItems(const KFileItemList& items); void removeItems(const KFileItemList& items); - + /** * Helper method for insertItems() and removeItems(): Creates * a list of ItemData elements based on the given items. @@ -243,7 +243,7 @@ private: * Runtime complexity is O(1). */ Role roleIndex(const QByteArray& role) const; - + /** * @return Role-byte-array for the given role-index. * Runtime complexity is O(1). @@ -251,7 +251,7 @@ private: QByteArray roleByteArray(Role role) const; QHash<QByteArray, QVariant> retrieveData(const KFileItem& item) const; - + /** * @return True if the item-data \a a should be ordered before the item-data * \b. The item-data may have different parent-items. @@ -264,14 +264,14 @@ private: * have the same parent item, otherwise the comparison will be wrong. */ int sortRoleCompare(const ItemData* a, const ItemData* b) const; - + /** * Sorts the items by using lessThan() as comparison criteria. * The merge sort algorithm is used to assure a worst-case * of O(n * log(n)) and to keep the number of comparisons low. */ void sort(QList<ItemData*>::iterator begin, QList<ItemData*>::iterator end); - + /** Helper method for sort(). */ void merge(QList<ItemData*>::iterator begin, QList<ItemData*>::iterator pivot, @@ -281,14 +281,14 @@ private: QList<ItemData*>::iterator lowerBound(QList<ItemData*>::iterator begin, QList<ItemData*>::iterator end, const ItemData* value); - + /** Helper method for sort(). */ QList<ItemData*>::iterator upperBound(QList<ItemData*>::iterator begin, QList<ItemData*>::iterator end, const ItemData* value); /** Helper method for sort(). */ void reverse(QList<ItemData*>::iterator begin, QList<ItemData*>::iterator end); - + int stringCompare(const QString& a, const QString& b) const; /** @@ -340,7 +340,7 @@ private: Role m_sortRole; QSet<QByteArray> m_roles; Qt::CaseSensitivity m_caseSensitivity; - + QList<ItemData*> m_itemData; QHash<KUrl, int> m_items; // Allows O(1) access for KFileItemModel::index(const KFileItem& item) |
