diff options
author | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2013-09-03 00:04:10 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-05 23:20:09 +0200 |
commit | aa3f358d433ec7fbe0237141c22297f3d8d4120d (patch) | |
tree | 924e0f4387f601cf1183d0dbfa5433f641dc7a96 /src/gui/itemmodels | |
parent | 50a8a5e7959ca315e812413661a76576b7c3bbb8 (diff) |
Remove deprecated QtAlgorithms calls from QtGui
QtAlgorithms is getting deprecated,
see http://www.mail-archive.com/development@qt-project.org/msg01603.html
Change-Id: I324ddf6129fe8884ecea97ef47abb7c071dfb34c
Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
Diffstat (limited to 'src/gui/itemmodels')
-rw-r--r-- | src/gui/itemmodels/qstandarditemmodel.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/itemmodels/qstandarditemmodel.cpp b/src/gui/itemmodels/qstandarditemmodel.cpp index d5d742c9b3..955d72f2ca 100644 --- a/src/gui/itemmodels/qstandarditemmodel.cpp +++ b/src/gui/itemmodels/qstandarditemmodel.cpp @@ -55,6 +55,7 @@ #include <private/qstandarditemmodel_p.h> #include <qdebug.h> +#include <algorithm> QT_BEGIN_NAMESPACE @@ -254,10 +255,10 @@ void QStandardItemPrivate::sortChildren(int column, Qt::SortOrder order) if (order == Qt::AscendingOrder) { QStandardItemModelLessThan lt; - qStableSort(sortable.begin(), sortable.end(), lt); + std::stable_sort(sortable.begin(), sortable.end(), lt); } else { QStandardItemModelGreaterThan gt; - qStableSort(sortable.begin(), sortable.end(), gt); + std::stable_sort(sortable.begin(), sortable.end(), gt); } QModelIndexList changedPersistentIndexesFrom, changedPersistentIndexesTo; |