From 5f65236c3bd3b85fd5f288920f1b92051c50c2c1 Mon Sep 17 00:00:00 2001 From: Martin Baeuml Date: Thu, 5 May 2011 17:30:18 +0200 Subject: [PATCH] remove obsolete code --- annotationmodel.py | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/annotationmodel.py b/annotationmodel.py index 6d27a89..44ff27d 100644 --- a/annotationmodel.py +++ b/annotationmodel.py @@ -343,33 +343,6 @@ class AnnotationModel(QAbstractItemModel): return False -# TODO: remove!! - #def insertRows(self, position, rows=1, index=QModelIndex()): - #index = QModelIndex(index) # explicitly convert from QPersistentModelIndex - #item = self.itemFromIndex(index) - ##if isinstance(item, RootAnnotationModelItem): - #self.beginInsertRows(QModelIndex(), position, position + rows - 1) - #for row in range(rows): - #file = File('') - #item.data_.files.insert(position + row, file) - #item.children_.insert(position + row, FileAnnotationModelItem(file, item)) - #self.endInsertRows() - #self.emit(SIGNAL("dataChanged(QModelIndex,QModelIndex)"), index, index) - #self.set_dirty(True) - #return True - ## TODO handle inserts of rects, points etc -# - #def removeRows(self, position, rows=1, index=QModelIndex()): - #index = QModelIndex(index) # explicitly convert from QPersistentModelIndex - #item = self.itemFromIndex(index) - #self.beginRemoveRows(index, position, position + rows - 1) - #data_changed = item.removeRows(position, rows) - #self.endRemoveRows() - #if data_changed: - #self.set_dirty(True) - #return True - #return False - def addAnnotation(self, imageidx, ann={}, **kwargs): ann.update(kwargs) print "addAnnotation", ann