QtAlgorithms is getting deprecated,
see http://www.mail-archive.com/development@qt-project.org/msg01603.html
Change-Id: I6f02d91289c3f455d8643b145fb2c6477863056c
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
#include <QtWidgets/QListView>
#include <QtWidgets/QHeaderView>
+#include <algorithm>
+
QT_BEGIN_NAMESPACE
class QHelpIndexProvider : public QThread
}
m_mutex.lock();
m_indices = indicesSet.values();
- qSort(m_indices.begin(), m_indices.end(), caseInsensitiveLessThan);
+ std::sort(m_indices.begin(), m_indices.end(), caseInsensitiveLessThan);
m_mutex.unlock();
}
#include <QtCore/QDataStream>
#include <QtCore/QTextStream>
+#include <algorithm>
+
QT_BEGIN_NAMESPACE
namespace fulltextsearch {
}
}
}
- qSort(termList);
+ ::std::sort(termList.begin(), termList.end());
}
QVector<DocumentInfo> Reader::hits()
}
}
- qSort(documents);
+ ::std::sort(documents.begin(), documents.end());
return documents;
}
QVector<Document> maxList(0);
if ( !termList.count() )
return maxList;
- qSort(termList);
+ ::std::sort(termList.begin(), termList.end());
maxList = termList.takeLast().documents;
for(QList<Term>::Iterator it = termList.begin(); it != termList.end(); ++it) {