Uranium
Application Framework
|
Public Member Functions | |
__init__ (self, parent=None) | |
setSectionProperty (self, property_name) | |
sectionProperty (self) | |
setPreferredSections (self, Dict[str, int] weights) | |
preferredSections (self) | |
setFilter (self, filter_dict) | |
filter (self) | |
![]() | |
int | count (self) |
int | rowCount (self, parent=None) |
addRoleName (self, int role, str name) | |
roleNames (self) | |
data (self, index, role) | |
Dict[str, Any] | getItem (self, int index) |
List[Dict[str, Any]] | items (self) |
None | setItems (self, List[Dict[str, Any]] items) |
appendItem (self, Dict[str, Any] item) | |
None | insertItem (self, int index, Dict[str, Any] item) |
None | removeItem (self, int index) |
None | clear (self) |
None | setProperty (self, int index, str property, Any value) |
None | sort (self, Callable[[Any], float] fun, Optional[str] key=None, reverse=False) |
int | find (self, str key, Any value) |
Public Attributes | |
NameRole | |
IdRole | |
SectionRole | |
Static Public Attributes | |
int | NameRole = Qt.ItemDataRole.UserRole + 1 |
int | IdRole = Qt.ItemDataRole.UserRole + 2 |
int | SectionRole = Qt.ItemDataRole.UserRole + 3 |
sectionPropertyChanged = pyqtSignal() | |
preferredSectionsChanged = pyqtSignal() | |
filterChanged = pyqtSignal() | |
![]() | |
itemsChanged = pyqtSignal() | |
Protected Member Functions | |
_onContainerChanged (self, container) | |
None | _update (self) |
_sortKey (self, item) | |
_updateMetaData (self, container) | |
Protected Attributes | |
_onContainerChanged | |
_section_property | |
_preferred_sections | |
_filter_dict | |
![]() | |
_items | |
Model that holds definition containers. By setting the filter property the definitions held by this model can be changed.
UM.Settings.Models.DefinitionContainersModel.DefinitionContainersModel.__init__ | ( | self, | |
parent = None ) |
Reimplemented from UM.Qt.ListModel.ListModel.
|
protected |
Handler for container change events from registry
|
protected |
Private convenience function to reset & repopulate the model.
UM.Settings.Models.DefinitionContainersModel.DefinitionContainersModel.setFilter | ( | self, | |
filter_dict ) |
Set the filter of this model based on a string. :param filter_dict: Dictionary to do the filtering by.