mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-30 01:16:33 +02:00
[common] add 'values' method on DictModels
This commit is contained in:
parent
4ea793be74
commit
e391d76a82
2 changed files with 6 additions and 0 deletions
|
@ -18,6 +18,9 @@ class CoreDictModel:
|
|||
def items(self):
|
||||
return self._objects.items()
|
||||
|
||||
def values(self):
|
||||
return self._objects.values()
|
||||
|
||||
@property
|
||||
def objects(self):
|
||||
return self._objects
|
||||
|
|
|
@ -67,6 +67,9 @@ class QObjectListModel(QtCore.QAbstractListModel):
|
|||
""" Returns the object list used by the model to store data. """
|
||||
return self._objects
|
||||
|
||||
def values(self):
|
||||
return self._objects
|
||||
|
||||
def setObjectList(self, objects):
|
||||
""" Sets the model's internal objects list to objects. The model will
|
||||
notify any attached views that its underlying data has changed.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue