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/styles/qwindowsxpstyle.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/styles/qwindowsxpstyle.cpp')
-rw-r--r-- | src/widgets/styles/qwindowsxpstyle.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/widgets/styles/qwindowsxpstyle.cpp b/src/widgets/styles/qwindowsxpstyle.cpp index 3b3c27f6cb..f7a5f97dfd 100644 --- a/src/widgets/styles/qwindowsxpstyle.cpp +++ b/src/widgets/styles/qwindowsxpstyle.cpp @@ -72,6 +72,8 @@ #include <qvarlengtharray.h> #include <qdebug.h> +#include <algorithm> + QT_BEGIN_NAMESPACE // Runtime resolved theme engine function calls @@ -4306,7 +4308,7 @@ void QWindowsXPStylePrivate::showProperties(XPThemeData &themeData) } } } - qSort(all_props); + std::sort(all_props.begin(), all_props.end()); {// List all properties printf("part properties count = %d:\n", all_props.count()); |