spinetoolbox.mvcmodels.filter_checkbox_list_model
¶
Provides FilterCheckboxListModel for FilterWidget.
- author
Vennström (VTT)
- date
1.11.2018
Module Contents¶
Classes¶
Init class. |
|
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:
PySide2.QtCore.QAbstractListModel
Init class.
- Parameters
parent (QWidget) –
- class spinetoolbox.mvcmodels.filter_checkbox_list_model.LazyFilterCheckboxListModel(parent, source_model, show_empty=True)[source]¶
Bases:
SimpleFilterCheckboxListModel
Extends SimpleFilterCheckboxListModel to allow for lazy loading in synch with another model.
Init class.
- Parameters
parent (SpineDBEditor) –
source_model (CompoundParameterModel) – a model to lazily get data from
- 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.
Init class.
- Parameters
parent (SpineDBEditor) –
data_to_value (method) – a method to translate item data to a value for display role