Uranium
Application Framework
UM.Settings.Models.DefinitionContainersModel.DefinitionContainersModel Class Reference

Model that holds definition containers. More...

Inheritance diagram for UM.Settings.Models.DefinitionContainersModel.DefinitionContainersModel:
UM.Qt.ListModel.ListModel

Public Member Functions

def __init__ (self, parent=None)
 
def setSectionProperty (self, property_name)
 
def sectionProperty (self)
 
def setPreferredSectionValue (self, value)
 
def preferredSectionValue (self)
 
def setFilter (self, filter_dict)
 Set the filter of this model based on a string. More...
 
def filter (self)
 
- Public Member Functions inherited from UM.Qt.ListModel.ListModel
def __init__ (self, parent=None)
 
def rowCount (self, parent=None)
 
def addRoleName (self, role, name)
 
def roleNames (self)
 
def data (self, index, role)
 Reimplemented from QAbstractListModel.
 
def getItem (self, index)
 
def items (self)
 The list of items in this model. More...
 
def setItems (self, items)
 Replace all items at once. More...
 
def appendItem (self, item)
 Add an item to the list. More...
 
def insertItem (self, index, item)
 Insert an item into the list at an index. More...
 
def removeItem (self, index)
 Remove an item from the list. More...
 
def clear (self)
 Clear the list. More...
 
def setProperty (self, index, property, value)
 
def sort (self, fun)
 Sort the list. More...
 
def find (self, key, value)
 

Static Public Attributes

int NameRole = Qt.UserRole + 1
 
int IdRole = Qt.UserRole + 2
 
int SectionRole = Qt.UserRole + 3
 
 sectionPropertyChanged = pyqtSignal()
 
 str
 
 fset
 
 setSectionProperty
 
 notify
 
 preferredSectionValueChanged = pyqtSignal()
 
 setPreferredSectionValue
 
 filterChanged = pyqtSignal()
 
 setFilter
 
- Static Public Attributes inherited from UM.Qt.ListModel.ListModel
 result
 Reimplemented from QAbstractListModel.
 
 int
 Get an item from the list.
 
 str
 Find a entry by key value pair. More...
 
 QVariant
 

Detailed Description

Model that holds definition containers.

By setting the filter property the definitions held by this model can be changed.

Member Function Documentation

◆ setFilter()

def UM.Settings.Models.DefinitionContainersModel.DefinitionContainersModel.setFilter (   self,
  filter_dict 
)

Set the filter of this model based on a string.

Parameters
filter_dictDictionary to do the filtering by.

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