Skip to content

Commit

Permalink
Sort items
Browse files Browse the repository at this point in the history
  • Loading branch information
Ignotus committed Apr 11, 2015
1 parent 5394a55 commit 54f7e51
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pluginmanagerwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ namespace KDots
QSortFilterProxyModel *proxyModel = new QSortFilterProxyModel(this);
proxyModel->setSourceModel(model);

model->sort(0, Qt::AscendingOrder);

m_ui->PluginList->setModel(model);
m_ui->PluginList->setItemDelegate(new PluginWidgetDelegate(m_ui->PluginList));
m_ui->PluginList->setSelectionMode(QAbstractItemView::SingleSelection);
Expand Down

0 comments on commit 54f7e51

Please sign in to comment.