def on_fields_toggled(self, item):
"""
A slot raised when a field is checked or unchecked.
The field unchecked is added to excluded_fields list. If checked,
the field will be removed from the excluded_list.
:param item: The field item
:type item: QStandardItem
"""
if item.checkState() == Qt.Unchecked:
self.excluded_fields.append(item.text())
else:
self.excluded_fields.remove(item.text())
评论列表
文章目录