Uranium
Application Framework
UM.Settings.Models.ContainerStacksModel.ContainerStacksModel Class Reference
Inheritance diagram for UM.Settings.Models.ContainerStacksModel.ContainerStacksModel:
UM.Qt.ListModel.ListModel

Public Member Functions

def __init__ (self, parent=None)
 
def setFilter (self, filter_dict)
 
def filter (self)
 
- Public Member Functions inherited from UM.Qt.ListModel.ListModel
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)
 
int find (self, str key, Any value)
 

Static Public Attributes

int NameRole = Qt.UserRole + 1
 
int IdRole = Qt.UserRole + 2
 
int MetaDataRole = Qt.UserRole + 3
 
 filterChanged = pyqtSignal()
 
 fset
 
 setFilter
 
 notify
 
- Static Public Attributes inherited from UM.Qt.ListModel.ListModel
 itemsChanged = pyqtSignal()
 
 int
 
 notify
 
 result
 
 str
 
 QVariant
 

Detailed Description

Model that holds container stacks. By setting the filter property the stacks held by this model can be
changed.

Member Function Documentation

◆ setFilter()

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.

The documentation for this class was generated from the following file: