mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Use our own sort proxy model class
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									af9f07626a
								
							
						
					
					
						commit
						adaaaaf32b
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -47,7 +47,7 @@ void run_ui() | |||
| #endif | ||||
| 	engine.addImportPath("qrc://imports"); | ||||
| 	DiveListModel diveListModel; | ||||
| 	QSortFilterProxyModel *sortModel = new QSortFilterProxyModel(0); | ||||
| 	DiveListSortModel *sortModel = new DiveListSortModel(0); | ||||
| 	sortModel->setSourceModel(&diveListModel); | ||||
| 	sortModel->setDynamicSortFilter(true); | ||||
| 	sortModel->setSortRole(DiveListModel::DiveDateRole); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue