|
Uranium
Application Framework
|
The StageModel is a representation of all stages in QML. More...
Public Member Functions | |
| def | __init__ |
Public Member Functions inherited from UM.Qt.ListModel.ListModel | |
| def | __init__ |
| def | count (self) |
| def | rowCount |
| This function is necessary because it is abstract in QAbstractListModel. More... | |
| def | addRoleName |
| def | roleNames (self) |
| def | data (self, index, role) |
| Reimplemented from QAbstractListModel. | |
| def | getItem |
| Get an item from the list. | |
| def | items (self) |
| 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 (self) |
| 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 | IdRole = Qt.UserRole+1 |
| int | NameRole = Qt.UserRole+2 |
| int | StageRole = Qt.UserRole+4 |
Static Public Attributes inherited from UM.Qt.ListModel.ListModel | |
| tuple | itemsChanged = pyqtSignal() |
The StageModel is a representation of all stages in QML.
Use it to populate a stage based menu (like top bar).