Uranium
Application Framework
Loading...
Searching...
No Matches
UM.Qt.Bindings.StageModel.StageModel Class Reference
Inheritance diagram for UM.Qt.Bindings.StageModel.StageModel:
UM.Qt.ListModel.ListModel

Public Member Functions

def __init__ (self, parent=None)
 
- Public Member Functions inherited from UM.Qt.ListModel.ListModel
None __init__ (self, parent=None)
 
int count (self)
 
int rowCount (self, parent=None)
 
def addRoleName (self, int role, str name)
 
def roleNames (self)
 
def data (self, index, role)
 
Dict[str, Any] getItem (self, int index)
 
List[Dict[str, Any]] items (self)
 
None setItems (self, List[Dict[str, Any]] items)
 
def appendItem (self, Dict[str, Any] item)
 
None insertItem (self, int index, Dict[str, Any] item)
 
None removeItem (self, int index)
 
None clear (self)
 
None setProperty (self, int index, str property, Any value)
 
None sort (self, Callable[[Any], float] fun, Optional[str] key=None, reverse=False)
 
int find (self, str key, Any value)
 

Static Public Attributes

Qt IdRole = Qt.ItemDataRole.UserRole + 1
 
Qt NameRole = Qt.ItemDataRole.UserRole + 2
 
Qt StageRole = Qt.ItemDataRole.UserRole + 4
 
- Static Public Attributes inherited from UM.Qt.ListModel.ListModel
pyqtSignal itemsChanged = pyqtSignal()
 

Protected Member Functions

def _onStagesChanged (self)
 

Protected Attributes

 _controller
 
- Protected Attributes inherited from UM.Qt.ListModel.ListModel
 _items
 

Detailed Description

The StageModel is a representation of all stages in QML.

Use it to populate a stage based menu (like top bar).

Constructor & Destructor Documentation

◆ __init__()

def UM.Qt.Bindings.StageModel.StageModel.__init__ (   self,
  parent = None 
)

Reimplemented from UM.Qt.ListModel.ListModel.


The documentation for this class was generated from the following file: