mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 18:05:55 +08:00
Add doc for BaseMaterialsModel
This commit is contained in:
parent
b4c3536999
commit
4b7c8a8a80
@ -6,6 +6,12 @@ from PyQt5.QtCore import Qt, pyqtSignal, pyqtProperty
|
|||||||
from UM.Qt.ListModel import ListModel
|
from UM.Qt.ListModel import ListModel
|
||||||
|
|
||||||
|
|
||||||
|
#
|
||||||
|
# This is the base model class for GenericMaterialsModel and BrandMaterialsModel
|
||||||
|
# Those 2 models are used by the material drop down menu to show generic materials and branded materials separately.
|
||||||
|
# The extruder position defined here is being used to bound a menu to the correct extruder. This is used in the top
|
||||||
|
# bar menu "Settings" -> "Extruder nr" -> "Material" -> this menu
|
||||||
|
#
|
||||||
class BaseMaterialsModel(ListModel):
|
class BaseMaterialsModel(ListModel):
|
||||||
RootMaterialIdRole = Qt.UserRole + 1
|
RootMaterialIdRole = Qt.UserRole + 1
|
||||||
IdRole = Qt.UserRole + 2
|
IdRole = Qt.UserRole + 2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user