[vlc-commits] Qt: addons: sort view

Francois Cartegnie git at videolan.org
Tue Feb 18 19:11:07 CET 2014


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Feb 18 19:09:29 2014 +0100| [adfc4aa92b5dd7d88891af699efb21de4b1eab33] | committer: Francois Cartegnie

Qt: addons: sort view

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=adfc4aa92b5dd7d88891af699efb21de4b1eab33
---

 modules/gui/qt4/dialogs/plugins.cpp |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/gui/qt4/dialogs/plugins.cpp b/modules/gui/qt4/dialogs/plugins.cpp
index b59a4f0..97ca90d 100644
--- a/modules/gui/qt4/dialogs/plugins.cpp
+++ b/modules/gui/qt4/dialogs/plugins.cpp
@@ -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 );



More information about the vlc-commits mailing list