spinetoolbox.mvcmodels.filter_checkbox_list_model
Provides FilterCheckboxListModel for FilterWidget.
Module Contents
Classes
|
|
Extends SimpleFilterCheckboxListModel to allow for lazy loading in synch with another model. |
|
Extends SimpleFilterCheckboxListModel to allow for translating internal data to a value for display role. |
- class spinetoolbox.mvcmodels.filter_checkbox_list_model.SimpleFilterCheckboxListModel(parent, show_empty=True)[source]
Bases:
PySide6.QtCore.QAbstractListModel
- Parameters
parent (QWidget) – parent widget
show_empty (bool) – if True, adds an empty row to the end of the list
- class spinetoolbox.mvcmodels.filter_checkbox_list_model.LazyFilterCheckboxListModel(parent, db_mngr, db_maps, fetch_parent, show_empty=True)[source]
Bases:
SimpleFilterCheckboxListModel
Extends SimpleFilterCheckboxListModel to allow for lazy loading in synch with another model.
- Parameters
parent (SpineDBEditor) – parent widget
db_mngr (SpineDBManager) – database manager
db_maps (Sequence of DatabaseMapping) – database maps
fetch_parent (FetchParent) – fetch parent
show_empty (bool) – if True, show an empty row at the end of the list
- class spinetoolbox.mvcmodels.filter_checkbox_list_model.DataToValueFilterCheckboxListModel(parent, data_to_value, show_empty=True)[source]
Bases:
SimpleFilterCheckboxListModel
Extends SimpleFilterCheckboxListModel to allow for translating internal data to a value for display role.
- Parameters
parent (SpineDBEditor) – parent widget
data_to_value (method) – a method to translate item data to a value for display role
show_empty (bool) – if True, add an empty row to the end of the list