mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +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…
Reference in a new issue