Uranium
Application Framework
|
Public Member Functions | |
def | __init__ (self, parent=None) |
def | setFilter (self, filter_dict) |
def | filter (self) |
![]() | |
None | __init__ (self, parent=None) |
int | count (self) |
int | rowCount (self, parent=None) |
def | addRoleName (self, int role, str name) |
def | roleNames (self) |
def | 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) |
def | 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) |
Static Public Attributes | |
Qt | NameRole = Qt.ItemDataRole.UserRole + 1 |
Qt | IdRole = Qt.ItemDataRole.UserRole + 2 |
Qt | MetaDataRole = Qt.ItemDataRole.UserRole + 3 |
pyqtSignal | filterChanged = pyqtSignal() |
![]() | |
pyqtSignal | itemsChanged = pyqtSignal() |
Protected Member Functions | |
def | _onContainerChanged (self, container) |
def | _onContainerNameChanged (self) |
def | _update (self) |
Protected Attributes | |
_container_stacks | |
_filter_dict | |
![]() | |
_items | |
Model that holds container stacks. By setting the filter property the stacks held by this model can be changed.
def UM.Settings.Models.ContainerStacksModel.ContainerStacksModel.__init__ | ( | self, | |
parent = None |
|||
) |
Reimplemented from UM.Qt.ListModel.ListModel.
|
protected |
Handler for container added/removed events from registry
|
protected |
Handler for container name change events.
|
protected |
Private convenience function to reset & repopulate the model.
def UM.Settings.Models.ContainerStacksModel.ContainerStacksModel.setFilter | ( | self, | |
filter_dict | |||
) |
Set the filter of this model based on a string. :param filter_dict: Dictionary to do the filtering by.