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:
scorpio810
2017-02-03 13:48:42 +00:00
parent 902037d278
commit aded80e4ae
6 changed files with 14 additions and 5 deletions

View File

@@ -16,6 +16,7 @@
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
*/
#include "qtextorientationwidget.h"
#include <algorithm>
/**
Constructeur
@@ -283,7 +284,7 @@ QString QTextOrientationWidget::getMostUsableStringForRadius(const qreal &radius
// recupere les longueurs a disposition
QList<qreal> available_lengths = text_size_hash_.values();
// trie les longueurs par ordre croissant
qSort(available_lengths.begin(), available_lengths.end());
std::sort(available_lengths.begin(), available_lengths.end());
// recherche la position ou l'on insererait le rayon
QList<qreal>::const_iterator i = qUpperBound(available_lengths, radius);