Uranium
Application Framework
|
A list model providing a list of all registered OutputDevice instances. More...
Public Member Functions | |
__init__ (self, parent=None) | |
getDevice (self, device_id) | |
deviceCount (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. | |
Public Attributes | |
IdRole | |
NameRole | |
ShortDescriptionRole | |
DescriptionRole | |
IconNameRole | |
PriorityRole | |
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 |
outputDevicesChanged = pyqtSignal() | |
![]() | |
itemsChanged = pyqtSignal() | |
Protected Member Functions | |
_update (self) | |
Protected Attributes | |
_device_manager | |
_update | |
![]() | |
_items | |
_role_names | |
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:
UM.Qt.Bindings.OutputDevicesModel.OutputDevicesModel.__init__ | ( | self, | |
parent = None |
|||
) |
Reimplemented from UM.Qt.ListModel.ListModel.