Updated listCopyReverse to support older versions of Qt
This commit is contained in:
		
							parent
							
								
									081bc0380b
								
							
						
					
					
						commit
						95a91fb526
					
				| @ -9421,8 +9421,9 @@ void MainWindow::displayActivity(bool force) { | |||||||
| template<typename T> | template<typename T> | ||||||
| QList<T> listCopyReverse(QList<T> const &list){ | QList<T> listCopyReverse(QList<T> const &list){ | ||||||
|     QList<T> newList = QList<T>(); |     QList<T> newList = QList<T>(); | ||||||
|     for(auto iter = list.rbegin(); iter != list.rend(); iter++){ |     auto iter = list.end(); | ||||||
|         newList.append(*iter); |     while(iter != list.begin()){ | ||||||
|  |         newList.append(*(--iter)); | ||||||
|     } |     } | ||||||
|     return newList; |     return newList; | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Jordan Sherer
						Jordan Sherer