mirror of
https://github.com/wassname/sloth.git
synced 2026-07-09 22:55:35 +08:00
fix to use new model API
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user