Uranium
Application Framework
UM.Qt.Bindings.OutputDevicesModel.OutputDevicesModel Class Reference
Inheritance diagram for UM.Qt.Bindings.OutputDevicesModel.OutputDevicesModel:
UM.Qt.ListModel.ListModel

Public Member Functions

def __init__
 
def getDevice (self, device_id)
 
def deviceCount (self)
 
- Public Member Functions inherited from UM.Qt.ListModel.ListModel
def __init__
 
def count (self)
 
def rowCount
 
def addRoleName
 
def roleNames (self)
 
def data (self, index, role)
 
def getItem
 
def items (self)
 
def setItems
 
def appendItem
 
def insertItem
 
def removeItem
 
def clear (self)
 
def setProperty
 
def sort
 
def find
 

Static Public Attributes

int IdRole = Qt.UserRole+1
 
int NameRole = Qt.UserRole+2
 
int ShortDescriptionRole = Qt.UserRole+3
 
int DescriptionRole = Qt.UserRole+4
 
int IconNameRole = Qt.UserRole+5
 
int PriorityRole = Qt.UserRole+6
 
tuple outputDevicesChanged = pyqtSignal()
 
- Static Public Attributes inherited from UM.Qt.ListModel.ListModel
tuple itemsChanged = pyqtSignal()
 

Detailed Description

A list model providing a list of all registered OutputDevice instances.

This list model wraps OutputDeviceManager's list of OutputDevice instances.
Additionally it provides a function to set OutputDeviceManager's active device.

Exposes the following roles:
* id - The device ID
* name - The human-readable name of the device
* short_description - The short description of the device
* description - The full description of the device
* icon_name - The name of the icon used to identify the device
* priority - The device priority

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