Commit adfc4aa9 authored by Francois Cartegnie's avatar Francois Cartegnie

Qt: addons: sort view

parent b69ad311
......@@ -359,6 +359,8 @@ AddonsTab::AddonsTab( intf_thread_t *p_intf_ ) : QVLCFrame( p_intf_ )
AddonsListModel *model = new AddonsListModel( AM, addonsView );
addonsModel = new AddonsSortFilterProxyModel();
addonsModel->setDynamicSortFilter( true );
addonsModel->setSortRole( Qt::DisplayRole );
addonsModel->sort( 0, Qt::AscendingOrder );
addonsModel->setSourceModel( model );
addonsModel->setFilterRole( Qt::DisplayRole );
addonsView->setModel( addonsModel );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment