[common] add 'parent' field to CoreObject

useful to match QObject's API
This commit is contained in:
Yann Lanthony 2017-10-23 18:07:35 +02:00
parent 8e472b7d2b
commit 2a213b70cf

View file

@ -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