diff options
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) { |