From e6cd3d026dcf5f6b5e80de4039a54c049ba5ed9f Mon Sep 17 00:00:00 2001 From: AL <26797547+Al12rs@users.noreply.github.com> Date: Sun, 23 Feb 2020 02:32:51 +0100 Subject: Add option to filterwidget to keep selection in view --- src/settings.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/settings.cpp b/src/settings.cpp index f0496fe8..1b8c51b8 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -2009,6 +2009,7 @@ FilterWidget::Options InterfaceSettings::filterOptions() const o.useRegex = get(m_Settings, "Settings", "filter_regex", false); o.regexCaseSensitive = get(m_Settings, "Settings", "regex_case_sensitive", false); o.regexExtended = get(m_Settings, "Settings", "regex_extended", false); + o.scrollToSelection = get(m_Settings, "Settings", "filter_scroll_to_selection", false); return o; } @@ -2018,6 +2019,7 @@ void InterfaceSettings::setFilterOptions(const FilterWidget::Options& o) set(m_Settings, "Settings", "filter_regex", o.useRegex); set(m_Settings, "Settings", "regex_case_sensitive", o.regexCaseSensitive); set(m_Settings, "Settings", "regex_extended", o.regexExtended); + set(m_Settings, "Settings", "filter_scroll_to_selection", o.scrollToSelection); } -- cgit v1.3.1 From 5208bf525183eadf8235f620f3e081f1c9541eb9 Mon Sep 17 00:00:00 2001 From: AL <26797547+Al12rs@users.noreply.github.com> Date: Sun, 23 Feb 2020 14:22:46 +0100 Subject: Set filterwidget delay for the data tab to avoid typing stutter --- src/datatab.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/datatab.cpp b/src/datatab.cpp index b6119d52..af7eb18f 100644 --- a/src/datatab.cpp +++ b/src/datatab.cpp @@ -29,6 +29,7 @@ DataTab::DataTab( m_filter.setFilterColumn(FileTreeModel::FileName); m_filter.setEdit(mwui->dataTabFilter); m_filter.setList(mwui->dataTree); + m_filter.setUpdateDelay(true); if (auto* m=m_filter.proxyModel()) { m->setDynamicSortFilter(false); -- cgit v1.3.1 From 22f8698e0b75db06be166c653edb17e6808f8672 Mon Sep 17 00:00:00 2001 From: AL <26797547+Al12rs@users.noreply.github.com> Date: Sun, 23 Feb 2020 22:11:18 +0100 Subject: Moved filters back to the bottom --- src/mainwindow.ui | 240 ++++++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 181 insertions(+), 59 deletions(-) (limited to 'src') diff --git a/src/mainwindow.ui b/src/mainwindow.ui index b54d54f8..ffa2460f 100644 --- a/src/mainwindow.ui +++ b/src/mainwindow.ui @@ -775,6 +775,15 @@ p, li { white-space: pre-wrap; } Plugins + + 2 + + + 6 + + + 0 + @@ -795,20 +804,17 @@ p, li { white-space: pre-wrap; } - - - Filter the list of plugins. - - - Filter the list of plugins. - - - + + + Qt::Horizontal - - Filter + + + 40 + 20 + - + @@ -942,6 +948,39 @@ p, li { white-space: pre-wrap; } + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + Filter the list of plugins. + + + Filter the list of plugins. + + + + + + Filter + + + + + @@ -952,6 +991,15 @@ p, li { white-space: pre-wrap; } Archives + + 2 + + + 6 + + + 0 + @@ -1010,6 +1058,15 @@ p, li { white-space: pre-wrap; } Data + + 2 + + + 6 + + + 0 + @@ -1030,15 +1087,48 @@ p, li { white-space: pre-wrap; } - - - Filter the Data tree. + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + + Qt::CustomContextMenu - Filter the Data tree. + This is an overview of your data directory as visible to the game (and tools). + + + true + + + QAbstractItemView::ExtendedSelection + + + true + + + true + + + + @@ -1068,29 +1158,13 @@ p, li { white-space: pre-wrap; } - - - - - - - Qt::CustomContextMenu + + + Filter the Data tree. - This is an overview of your data directory as visible to the game (and tools). - - - true - - - QAbstractItemView::ExtendedSelection - - - true - - - true + Filter the Data tree. @@ -1103,6 +1177,15 @@ p, li { white-space: pre-wrap; } Saves + + 2 + + + 6 + + + 0 + @@ -1138,8 +1221,17 @@ p, li { white-space: pre-wrap; } Downloads + + 2 + + + 6 + + + 0 + - + @@ -1158,30 +1250,17 @@ p, li { white-space: pre-wrap; } - - - Filter the list of downloads. + + + Qt::Horizontal - - Filter the list of downloads. - - - Filter - - - - - - - Show downloads marked as hidden. - - - Show downloads marked as hidden. - - - Hidden files + + + 40 + 20 + - + @@ -1235,6 +1314,49 @@ p, li { white-space: pre-wrap; } + + + + + + Show downloads marked as hidden. + + + Show downloads marked as hidden. + + + Hidden files + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + Filter the list of downloads. + + + Filter the list of downloads. + + + Filter + + + + + -- cgit v1.3.1