Skip to content

Commit

Permalink
Dynamically filter the QSortFilterProxyModel for BrowseTableModel. Fi…
Browse files Browse the repository at this point in the history
…xes Bug #1333469
  • Loading branch information
rryan committed Nov 26, 2014
1 parent 90f99ee commit eda0480
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/library/browse/browsefeature.cpp
Expand Up @@ -50,6 +50,8 @@ BrowseFeature::BrowseFeature(QObject* parent,
// BrowseThread sets the Qt::UserRole of every QStandardItem to the sort key
// of the item.
m_proxyModel.setSortRole(Qt::UserRole);
// Dynamically re-sort contents as we add items to the source model.
m_proxyModel.setDynamicSortFilter(true);

// The invisible root item of the child model
TreeItem* rootItem = new TreeItem();
Expand Down

0 comments on commit eda0480

Please sign in to comment.