Browse Source

Merge pull request #7541 from Kolcha/sort-plugins

allow search plugins sorting. closes #7526
adaptive-webui-19844
Mike Tzou 7 years ago committed by GitHub
parent
commit
6c0dd81528
  1. 1
      src/gui/search/pluginselectdlg.cpp
  2. 3
      src/gui/search/pluginselectdlg.ui

1
src/gui/search/pluginselectdlg.cpp

@ -82,6 +82,7 @@ PluginSelectDlg::PluginSelectDlg(SearchEngine *pluginManager, QWidget *parent)
m_ui->pluginsTree->header()->resizeSection(1, 80); m_ui->pluginsTree->header()->resizeSection(1, 80);
m_ui->pluginsTree->header()->resizeSection(2, 200); m_ui->pluginsTree->header()->resizeSection(2, 200);
m_ui->pluginsTree->hideColumn(PLUGIN_ID); m_ui->pluginsTree->hideColumn(PLUGIN_ID);
m_ui->pluginsTree->header()->setSortIndicator(0, Qt::AscendingOrder);
m_ui->actionUninstall->setIcon(GuiIconProvider::instance()->getIcon("list-remove")); m_ui->actionUninstall->setIcon(GuiIconProvider::instance()->getIcon("list-remove"));

3
src/gui/search/pluginselectdlg.ui

@ -45,6 +45,9 @@
<property name="itemsExpandable"> <property name="itemsExpandable">
<bool>false</bool> <bool>false</bool>
</property> </property>
<property name="sortingEnabled">
<bool>true</bool>
</property>
<column> <column>
<property name="text"> <property name="text">
<string>Name</string> <string>Name</string>

Loading…
Cancel
Save