LegacyUM3 now handles warnings & errors again

CL-541
This commit is contained in:
Jaime van Kessel 2017-11-23 13:37:59 +01:00
parent 96d5c7152b
commit 8b8d67b3a8
5 changed files with 166 additions and 11 deletions

View file

@ -5,12 +5,13 @@ from PyQt5.QtCore import pyqtSignal, pyqtProperty, QObject, QVariant, pyqtSlot
class MaterialOutputModel(QObject):
def __init__(self, guid, type, color, brand, parent = None):
def __init__(self, guid, type, color, brand, name, parent = None):
super().__init__(parent)
self._guid = guid
self._type = type
self._color = color
self._brand = brand
self._name = name
@pyqtProperty(str, constant = True)
def guid(self):
@ -26,4 +27,8 @@ class MaterialOutputModel(QObject):
@pyqtProperty(str, constant=True)
def color(self):
return self._color
return self._color
@pyqtProperty(str, constant=True)
def name(self):
return self._name