Model that holds container stacks.
More...
|
| __init__ (self, parent=None) |
|
| setFilter (self, filter_dict) |
| Set the filter of this model based on a string.
|
|
| filter (self) |
|
| __init__ (self, parent=None) |
|
| rowCount (self, parent=None) |
| Reimplemented from QAbstractListModel.
|
|
| addRoleName (self, role, name) |
|
| roleNames (self) |
|
| data (self, index, role) |
| Reimplemented from QAbstractListModel.
|
|
| getItem (self, index) |
| Get an item from the list.
|
|
| items (self) |
| The list of items in this model.
|
|
| setItems (self, items) |
| Replace all items at once.
|
|
| appendItem (self, item) |
| Add an item to the list.
|
|
| insertItem (self, index, item) |
| Insert an item into the list at an index.
|
|
| removeItem (self, index) |
| Remove an item from the list.
|
|
| clear (self) |
| Clear the list.
|
|
| setProperty (self, index, property, value) |
|
| sort (self, fun) |
| Sort the list.
|
|
| find (self, key, value) |
| Find a entry by key value pair.
|
|
|
| NameRole |
|
| IdRole |
|
| MetaDataRole |
|
|
int | NameRole = Qt.UserRole + 1 |
|
int | IdRole = Qt.UserRole + 2 |
|
int | MetaDataRole = Qt.UserRole + 3 |
|
| filterChanged = pyqtSignal() |
|
| itemsChanged = pyqtSignal() |
|
|
| _onContainerChanged (self, container) |
| Handler for container added/removed events from registry.
|
|
| _onContainerNameChanged (self) |
| Handler for container name change events.
|
|
| _update (self) |
| Private convenience function to reset & repopulate the model.
|
|
|
| _container_stacks |
|
| _onContainerChanged |
|
| _filter_dict |
|
| _onContainerNameChanged |
|
| _items |
|
| _role_names |
|
Model that holds container stacks.
By setting the filter property the stacks held by this model can be changed.
◆ __init__()
UM.Settings.Models.ContainerStacksModel.ContainerStacksModel.__init__ |
( |
|
self, |
|
|
|
parent = None |
|
) |
| |
◆ setFilter()
UM.Settings.Models.ContainerStacksModel.ContainerStacksModel.setFilter |
( |
|
self, |
|
|
|
filter_dict |
|
) |
| |
Set the filter of this model based on a string.
- Parameters
-
filter_dict | Dictionary to do the filtering by. |
The documentation for this class was generated from the following file:
- UM/Settings/Models/ContainerStacksModel.py