Uranium
Application Framework
 All Classes Namespaces Files Functions Variables Pages
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__
 
def setSectionProperty
 
def sectionProperty
 
def setPreferredSectionValue
 
def preferredSectionValue
 
def setFilter
 Set the filter of this model based on a string. More...
 
def filter
 
- Public Member Functions inherited from UM.Qt.ListModel.ListModel
def __init__
 
def rowCount
 Reimplemented from QAbstractListModel.
 
def addRoleName
 
def roleNames
 
def data
 Reimplemented from QAbstractListModel.
 
def getItem
 Get an item from the list.
 
def items
 The list of items in this model. More...
 
def setItems
 Replace all items at once. More...
 
def appendItem
 Add an item to the list. More...
 
def insertItem
 Insert an item into the list at an index. More...
 
def removeItem
 Remove an item from the list. More...
 
def clear
 Clear the list. More...
 
def setProperty
 
def sort
 Sort the list. More...
 
def find
 Find a entry by key value pair. More...
 

Static Public Attributes

int NameRole = Qt.UserRole+1
 
int IdRole = Qt.UserRole+2
 
int SectionRole = Qt.UserRole+3
 
tuple sectionPropertyChanged = pyqtSignal()
 
tuple preferredSectionValueChanged = pyqtSignal()
 
tuple filterChanged = pyqtSignal()
 

Detailed Description

Model that holds definition containers.

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

Member Function Documentation

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: