diff options
| author | Laurent Montel <[email protected]> | 2019-03-10 10:51:24 +0100 |
|---|---|---|
| committer | Laurent Montel <[email protected]> | 2019-03-10 10:51:27 +0100 |
| commit | 1aeea4a6abe49a6a4739f77d6c6fdce8fdbe48ad (patch) | |
| tree | 5143fad5d8c5081548ee423d57623a42fd9a9e89 /src/kitemviews/kitemlistview.cpp | |
| parent | 1a325946174258186b6b8dfeae6dd096d90483f2 (diff) | |
port to std::stable_sort
Diffstat (limited to 'src/kitemviews/kitemlistview.cpp')
| -rw-r--r-- | src/kitemviews/kitemlistview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kitemviews/kitemlistview.cpp b/src/kitemviews/kitemlistview.cpp index 9f1380c75..db258eb39 100644 --- a/src/kitemviews/kitemlistview.cpp +++ b/src/kitemviews/kitemlistview.cpp @@ -1041,7 +1041,7 @@ void KItemListView::slotItemsInserted(const KItemRangeList& itemRanges) // Update the indexes of all KItemListWidget instances that are located // after the inserted items. It is important to adjust the indexes in the order // from the highest index to the lowest index to prevent overlaps when setting the new index. - qSort(itemsToMove); + std::sort(itemsToMove.begin(), itemsToMove.end()); for (int i = itemsToMove.count() - 1; i >= 0; --i) { KItemListWidget* widget = m_visibleItems.value(itemsToMove[i]); Q_ASSERT(widget); |
