summaryrefslogtreecommitdiff
path: root/src/filterlist.cpp
diff options
context:
space:
mode:
authorAL <26797547+Al12rs@users.noreply.github.com>2020-02-26 19:34:33 +0100
committerAL <26797547+Al12rs@users.noreply.github.com>2020-02-26 19:34:33 +0100
commitc2e2be8ff7953c59cbf51024e3ff0249ad83387c (patch)
tree2499044e60ebfb4044e1fe10204ef627d923e30b /src/filterlist.cpp
parentc4b95bad653420bd7ed322a5d952356f9705df9e (diff)
Cleanup previous filterList code
Diffstat (limited to 'src/filterlist.cpp')
-rw-r--r--src/filterlist.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/filterlist.cpp b/src/filterlist.cpp
index 59f2e0be..57bc740a 100644
--- a/src/filterlist.cpp
+++ b/src/filterlist.cpp
@@ -30,7 +30,6 @@ public:
setData(0, TypeRole, type);
setData(0, IDRole, id);
setData(0, Qt::DecorationRole, QIcon(":/MO/gui/unchecked-checkbox"));
- setData(0, Qt::TextAlignmentRole, Qt::AlignCenter);
}
CriteriaType type() const
@@ -85,7 +84,6 @@ private:
void updateState()
{
- QString s;
QIcon i;
switch (m_state)
@@ -98,20 +96,16 @@ private:
case Active:
{
- // U+2713 CHECK MARK
- s = QString::fromUtf8("\xe2\x9c\x93");
i = QIcon(":/MO/gui/checked-checkbox");
break;
}
case Inverted:
{
- s = tr("Not");
i = QIcon(":/MO/gui/indeterminate-checkbox");
break;
}
}
- //setText(0, s);
setData(0, Qt::DecorationRole, i);
}
};
@@ -234,8 +228,6 @@ QTreeWidgetItem* FilterList::addCriteriaItem(
// no way to espand nodes in the filter view since clicking changes state.
ui->filters->addTopLevelItem(item);
- item->setTextAlignment(0, Qt::AlignCenter);
-
return item;
}