mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-11 08:06:52 +02:00
[common] add 'parent' field to CoreObject
useful to match QObject's API
This commit is contained in:
parent
8e472b7d2b
commit
2a213b70cf
1 changed files with 5 additions and 1 deletions
|
@ -82,8 +82,12 @@ class CoreProperty(property):
|
|||
|
||||
|
||||
class CoreObject(object):
|
||||
def __init__(self, *args, **kwargs):
|
||||
def __init__(self, parent=None, *args, **kwargs):
|
||||
super(CoreObject, self).__init__()
|
||||
self._parent = parent
|
||||
|
||||
def parent(self):
|
||||
return self._parent
|
||||
|
||||
|
||||
DictModel = CoreDictModel
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue