mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +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:
@@ -32,6 +32,7 @@
|
||||
#include "nameslist.h"
|
||||
#include "ui/elementpropertieseditorwidget.h"
|
||||
#include "eseventinterface.h"
|
||||
#include <algorithm>
|
||||
|
||||
#include <QKeyEvent>
|
||||
|
||||
@@ -749,7 +750,7 @@ QList<QGraphicsItem *> ElementScene::zItems(ItemOptions options) const {
|
||||
|
||||
// ordonne les parties par leur zValue
|
||||
if (options & SortByZValue) {
|
||||
qSort(all_items_list.begin(), all_items_list.end(), ElementScene::zValueLessThan);
|
||||
std::sort (all_items_list.begin(), all_items_list.end(), ElementScene::zValueLessThan);
|
||||
}
|
||||
|
||||
// rajoute eventuellement les bornes
|
||||
|
||||
Reference in New Issue
Block a user