From c2e2be8ff7953c59cbf51024e3ff0249ad83387c Mon Sep 17 00:00:00 2001 From: AL <26797547+Al12rs@users.noreply.github.com> Date: Wed, 26 Feb 2020 19:34:33 +0100 Subject: Cleanup previous filterList code --- src/filterlist.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/filterlist.cpp') 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; } -- cgit v1.3.1