mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 05:00:33 +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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user