diff options
author | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2013-09-13 20:46:54 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-14 13:12:40 +0200 |
commit | 384ca58e33eb1406243b7fece57ff01bd9675779 (patch) | |
tree | dc0336b9f12a98117055fcec0e727c7cd379a068 /examples/widgets/painting/shared/hoverpoints.cpp | |
parent | 3a8b8edd0180594b84a97b974c188b39f17c9f49 (diff) |
Remove qSort usages from qtbase examples
QtAlgorithms is getting deprecated,
see http://www.mail-archive.com/development@qt-project.org/msg01603.html
Change-Id: I68dec0cb6efa1f164ba9f1671b55332ee4ad2e23
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Diffstat (limited to 'examples/widgets/painting/shared/hoverpoints.cpp')
-rw-r--r-- | examples/widgets/painting/shared/hoverpoints.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/widgets/painting/shared/hoverpoints.cpp b/examples/widgets/painting/shared/hoverpoints.cpp index 36e0ad89b2..7a79560473 100644 --- a/examples/widgets/painting/shared/hoverpoints.cpp +++ b/examples/widgets/painting/shared/hoverpoints.cpp @@ -46,6 +46,8 @@ #include "arthurwidgets.h" #include "hoverpoints.h" +#include <algorithm> + #define printf HoverPoints::HoverPoints(QWidget *widget, PointShape shape) @@ -388,9 +390,9 @@ void HoverPoints::firePointChange() } if (m_sortType == XSort) - qSort(m_points.begin(), m_points.end(), x_less_than); + std::sort(m_points.begin(), m_points.end(), x_less_than); else if (m_sortType == YSort) - qSort(m_points.begin(), m_points.end(), y_less_than); + std::sort(m_points.begin(), m_points.end(), y_less_than); // Compensate for changed order... if (m_currentIndex != -1) { |