[desc] Attribute inherits BaseObject and expose members as properties

* also expose graph.Attribute's desc as a property
* introduce Variant in data structure backend API
This commit is contained in:
Yann Lanthony 2017-10-23 15:07:09 +02:00
parent 74e4089c68
commit 9c7d0c1b1c
5 changed files with 38 additions and 19 deletions

View file

@ -151,6 +151,7 @@ class Attribute(BaseObject):
name = Property(str, getName, constant=True)
label = Property(str, getLabel, constant=True)
desc = Property(desc.Attribute, lambda self: self.attributeDesc, constant=True)
valueChanged = Signal()
value = Property("QVariant", value.fget, value.fset, notify=valueChanged)
isOutput = Property(bool, isOutput.fget, constant=True)