Updated listCopyReverse to support older versions of Qt

This commit is contained in:
Jordan Sherer 2018-08-29 16:00:25 -04:00
parent 081bc0380b
commit 95a91fb526

View File

@ -9421,8 +9421,9 @@ void MainWindow::displayActivity(bool force) {
template<typename T>
QList<T> listCopyReverse(QList<T> const &list){
QList<T> newList = QList<T>();
for(auto iter = list.rbegin(); iter != list.rend(); iter++){
newList.append(*iter);
auto iter = list.end();
while(iter != list.begin()){
newList.append(*(--iter));
}
return newList;
}