Uranium
Application Framework
|
Model that holds container stacks. More...
Public Member Functions | |
def | __init__ (self, parent=None) |
def | setFilter (self, filter_dict) |
Set the filter of this model based on a string. More... | |
def | filter (self) |
![]() | |
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) |
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 | MetaDataRole = Qt.UserRole + 3 |
filterChanged = pyqtSignal() | |
fset | |
setFilter | |
notify | |
![]() | |
result | |
Reimplemented from QAbstractListModel. | |
int | |
Get an item from the list. | |
itemsChanged = pyqtSignal() | |
notify | |
The list of items in this model. More... | |
str | |
Find a entry by key value pair. More... | |
QVariant | |
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.setFilter | ( | self, | |
filter_dict | |||
) |
Set the filter of this model based on a string.
filter_dict | Dictionary to do the filtering by. |