mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 22:00:35 +01:00
Replace QSort function has been deprecated
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4898 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
#include "diagramcontext.h"
|
||||
#include <QRegExp>
|
||||
#include "qet.h"
|
||||
#include <algorithm>
|
||||
|
||||
/**
|
||||
@return a list containing all the keys in the context object.
|
||||
@@ -30,7 +31,7 @@ QList<QString> DiagramContext::keys(DiagramContext::KeyOrder order) const {
|
||||
if (order == Alphabetical) {
|
||||
qSort(keys_list);
|
||||
} else {
|
||||
qSort(keys_list.begin(), keys_list.end(), DiagramContext::stringLongerThan);
|
||||
std::sort(keys_list.begin(), keys_list.end(), DiagramContext::stringLongerThan);
|
||||
}
|
||||
return(keys_list);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user