diff options
author | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2013-09-03 00:52:11 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-05 17:47:15 +0200 |
commit | a78699e7f346bae5147017a872cb042cb834aa50 (patch) | |
tree | a621a87fa8d9444a48110b9e36dda4310f5894d9 /src/widgets/graphicsview/qgraphicsitemanimation.cpp | |
parent | c6d3fa1dcfbacdbcfb23b76ca6c5cede0ea9a5ef (diff) |
Remove qSort from QtWidgets
QtAlgorithms is getting deprecated,
see http://www.mail-archive.com/development@qt-project.org/msg01603.html
Change-Id: Iec5c10fc4c3b4e684b51f6223bf3cb56acc42b58
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
Reviewed-by: Thorbjørn Lund Martsum <tmartsum@gmail.com>
Diffstat (limited to 'src/widgets/graphicsview/qgraphicsitemanimation.cpp')
-rw-r--r-- | src/widgets/graphicsview/qgraphicsitemanimation.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/widgets/graphicsview/qgraphicsitemanimation.cpp b/src/widgets/graphicsview/qgraphicsitemanimation.cpp index 45e8b436b1..55d7ee6d1b 100644 --- a/src/widgets/graphicsview/qgraphicsitemanimation.cpp +++ b/src/widgets/graphicsview/qgraphicsitemanimation.cpp @@ -93,6 +93,8 @@ #include <QtCore/qpair.h> #include <QtGui/qmatrix.h> +#include <algorithm> + QT_BEGIN_NAMESPACE class QGraphicsItemAnimationPrivate @@ -179,7 +181,7 @@ void QGraphicsItemAnimationPrivate::insertUniquePair(qreal step, qreal value, QL result->value = value; else { *binList << pair; - qSort(binList->begin(), binList->end()); + std::sort(binList->begin(), binList->end()); } } |