Skip to content

Commit

Permalink
QtDialogUI: Sort checked items
Browse files Browse the repository at this point in the history
  • Loading branch information
Dax89 committed Apr 25, 2021
1 parent e9e4c0f commit aa6b902
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion LibREDasm
Submodule LibREDasm updated 1 files
+3 −1 rdcore/context.cpp
2 changes: 2 additions & 0 deletions ui/qtdialogui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ void QtDialogUI::createList(QAbstractItemModel* model)
{
QSortFilterProxyModel* filtermodel = new QSortFilterProxyModel(this);
filtermodel->setFilterCaseSensitivity(Qt::CaseInsensitive);
filtermodel->setSortRole(Qt::CheckStateRole);
filtermodel->setSourceModel(model);
filtermodel->sort(0, Qt::DescendingOrder);

QListView* lvitems = new QListView(this);
lvitems->setUniformItemSizes(true);
Expand Down

0 comments on commit aa6b902

Please sign in to comment.