Uranium
Application Framework
|
Model that holds definition containers. More...
Public Member Functions | |
def | __init__ (self, parent=None) |
def | setSectionProperty (self, property_name) |
def | sectionProperty (self) |
def | setPreferredSections (self, Dict[str, int] weights) |
def | preferredSections (self) |
def | setFilter (self, filter_dict) |
Set the filter of this model based on a string. More... | |
def | filter (self) |
![]() | |
int | count (self) |
int | rowCount (self, parent=None) |
def | addRoleName (self, int role, str name) |
def | roleNames (self) |
def | data (self, index, role) |
Reimplemented from QAbstractListModel. | |
Dict[str, Any] | getItem (self, int index) |
List[Dict[str, Any]] | items (self) |
None | setItems (self, List[Dict[str, Any]] items) |
Replace all items at once. More... | |
def | appendItem (self, Dict[str, Any] item) |
Add an item to the list. More... | |
None | insertItem (self, int index, Dict[str, Any] item) |
Insert an item into the list at an index. More... | |
None | removeItem (self, int index) |
Remove an item from the list. More... | |
None | clear (self) |
Clear the list. | |
None | setProperty (self, int index, str property, Any value) |
None | sort (self, Callable[[Any], float] fun) |
Sort the list. More... | |
int | find (self, str key, Any 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 | |
preferredSectionsChanged = pyqtSignal() | |
setPreferredSections | |
filterChanged = pyqtSignal() | |
setFilter | |
![]() | |
itemsChanged = pyqtSignal() | |
int | |
Get an item from the list. | |
notify | |
The list of items in this model. | |
result | |
This function is necessary because it is abstract in QAbstractListModel. More... | |
str | |
Find a entry by key value pair. More... | |
QVariant | |
Model that holds definition containers.
By setting the filter property the definitions held by this model can be changed.
def UM.Settings.Models.DefinitionContainersModel.DefinitionContainersModel.setFilter | ( | self, | |
filter_dict | |||
) |
Set the filter of this model based on a string.
filter_dict | Dictionary to do the filtering by. |