summaryrefslogtreecommitdiffstats
path: root/application/pages/ModFolderPage.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2016-08-05 00:10:33 +0200
committerPetr Mrázek <peterix@gmail.com>2016-08-05 00:10:33 +0200
commitcf0694a0cb9041c14cc0e06b9495590baacead73 (patch)
tree45613eaa4dd18165dedef4eed0bb86f9ab863f4c /application/pages/ModFolderPage.cpp
parentb76d4573cdaa41a3493596571dbba452ab7a5b2e (diff)
downloadMultiMC-cf0694a0cb9041c14cc0e06b9495590baacead73.tar
MultiMC-cf0694a0cb9041c14cc0e06b9495590baacead73.tar.gz
MultiMC-cf0694a0cb9041c14cc0e06b9495590baacead73.tar.lz
MultiMC-cf0694a0cb9041c14cc0e06b9495590baacead73.tar.xz
MultiMC-cf0694a0cb9041c14cc0e06b9495590baacead73.zip
NOISSUE allow user to sort mod list by clicking on column headers
Diffstat (limited to 'application/pages/ModFolderPage.cpp')
-rw-r--r--application/pages/ModFolderPage.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/application/pages/ModFolderPage.cpp b/application/pages/ModFolderPage.cpp
index 6b657ef6..4ab6ac3d 100644
--- a/application/pages/ModFolderPage.cpp
+++ b/application/pages/ModFolderPage.cpp
@@ -47,10 +47,12 @@ ModFolderPage::ModFolderPage(BaseInstance *inst, std::shared_ptr<ModList> mods,
m_filterModel = new QSortFilterProxyModel(this);
m_filterModel->setDynamicSortFilter(true);
m_filterModel->setFilterCaseSensitivity(Qt::CaseInsensitive);
+ m_filterModel->setSortCaseSensitivity(Qt::CaseInsensitive);
m_filterModel->setSourceModel(m_mods.get());
m_filterModel->setFilterKeyColumn(-1);
ui->modTreeView->setModel(m_filterModel);
ui->modTreeView->installEventFilter(this);
+ ui->modTreeView->sortByColumn(1, Qt::AscendingOrder);
auto smodel = ui->modTreeView->selectionModel();
connect(smodel, &QItemSelectionModel::currentChanged, this, &ModFolderPage::modCurrent);
connect(ui->filterEdit, &QLineEdit::textChanged, this, &ModFolderPage::on_filterTextChanged );