[tree model] add property to return the nodeDescriptor
This commit is contained in:
parent
1c996556e0
commit
e02f8dba30
@ -24,6 +24,10 @@ class NixTreeItem(QTreeWidgetItem):
|
||||
self._child_items = []
|
||||
self._is_loaded = False
|
||||
|
||||
@property
|
||||
def node_descriptor(self):
|
||||
return self._node_descriptor
|
||||
|
||||
@property
|
||||
def entity_type(self):
|
||||
return self._node_descriptor.entity_type
|
||||
|
Loading…
Reference in New Issue
Block a user