Fix reporting of numer of annotations in loaded file

This commit is contained in:
Mika Fischer
2011-06-29 14:04:04 +02:00
parent 6c4371a081
commit d050d61e60
+4 -2
View File
@@ -177,8 +177,10 @@ class RootModelItem(ModelItem):
return len(self.children())
def numAnnotations(self):
# TODO
return 0
count = 0
for ann in self._model.iterator(AnnotationModelItem):
count += 1
return count
def getAnnotations(self):
return [child.getAnnotations() for child in self.children()]