summaryrefslogtreecommitdiff
path: root/src/filterlist.cpp
diff options
context:
space:
mode:
authorAL <ga12@hotmail.it>2020-01-09 02:00:50 +0100
committerAL <ga12@hotmail.it>2020-01-09 02:00:50 +0100
commit734bd0ed20196206364d87c584dce3e1e498f4cd (patch)
tree684787ba6497a5a8eb7c35bb02577234cac68b73 /src/filterlist.cpp
parentf37ec77b2624fb4a41acf89ea7d12d9dc6ffa08d (diff)
List all categories flatly in filters view as nestled ones would otherwise not be accessible.
Diffstat (limited to 'src/filterlist.cpp')
-rw-r--r--src/filterlist.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/filterlist.cpp b/src/filterlist.cpp
index 69aca4c5..4287869d 100644
--- a/src/filterlist.cpp
+++ b/src/filterlist.cpp
@@ -225,11 +225,9 @@ QTreeWidgetItem* FilterList::addCriteriaItem(
{
auto* item = new CriteriaItem(this, name, type, categoryID);
- if (root != nullptr) {
- root->addChild(item);
- } else {
- ui->filters->addTopLevelItem(item);
- }
+ // For now list all categories flatly without nestling them as there is
+ // no way to espand nodes in the filter view since clicking changes state.
+ ui->filters->addTopLevelItem(item);
item->setTextAlignment(0, Qt::AlignCenter);