mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-13 09:06:58 +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):
|
class CoreObject(object):
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, parent=None, *args, **kwargs):
|
||||||
super(CoreObject, self).__init__()
|
super(CoreObject, self).__init__()
|
||||||
|
self._parent = parent
|
||||||
|
|
||||||
|
def parent(self):
|
||||||
|
return self._parent
|
||||||
|
|
||||||
|
|
||||||
DictModel = CoreDictModel
|
DictModel = CoreDictModel
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue