fix to use new model API

This commit is contained in:
Martin Baeuml
2011-06-14 19:40:35 +02:00
parent 2884bd7273
commit 9c498970f0
+2 -2
View File
@@ -297,7 +297,7 @@ class LabelTool(QObject):
'type': 'image',
'annotations': [ ],
}
self._model.root_.addFile(fileitem)
self._model._root.appendFileItem(fileitem)
def addVideoFile(self, fname):
fileitem = {
@@ -320,4 +320,4 @@ class LabelTool(QObject):
fileitem['frames'].append(frame)
i += 1
self._model.root_.addFile(fileitem)
self._model._root.appendFileItem(fileitem)