diff options
author | Petr Mrázek <peterix@gmail.com> | 2013-11-04 00:11:20 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2013-11-04 00:11:20 +0100 |
commit | d6e4fb29713d6ce55b092c0e22412f6121e7f516 (patch) | |
tree | ce4c2c3a2786bdbb9752c26d6feaab3735ba9bd6 /gui/mainwindow.cpp | |
parent | 44669290747b1d254d10c130e4e728051c8c4c5d (diff) | |
download | PrismLauncher-d6e4fb29713d6ce55b092c0e22412f6121e7f516.tar.gz PrismLauncher-d6e4fb29713d6ce55b092c0e22412f6121e7f516.tar.bz2 PrismLauncher-d6e4fb29713d6ce55b092c0e22412f6121e7f516.zip |
Implement instance sorting options.
Diffstat (limited to 'gui/mainwindow.cpp')
-rw-r--r-- | gui/mainwindow.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index fd086f11..20a2b84b 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -129,8 +129,8 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWi view->installEventFilter(this); proxymodel = new InstanceProxyModel(this); - proxymodel->setSortRole(KCategorizedSortFilterProxyModel::CategorySortRole); - proxymodel->setFilterRole(KCategorizedSortFilterProxyModel::CategorySortRole); +// proxymodel->setSortRole(KCategorizedSortFilterProxyModel::CategorySortRole); + //proxymodel->setFilterRole(KCategorizedSortFilterProxyModel::CategorySortRole); // proxymodel->setDynamicSortFilter ( true ); // FIXME: instList should be global-ish, or at least not tied to the main window... @@ -420,6 +420,9 @@ void MainWindow::on_actionSettings_triggered() { SettingsDialog dialog(this); dialog.exec(); + //FIXME: quick HACK to make this work. improve, optimize. + proxymodel->invalidate(); + proxymodel->sort(0); } void MainWindow::on_actionReportBug_triggered() |