From 8a6c9804933b8c22cfe441a5e767f00d4d94e024 Mon Sep 17 00:00:00 2001 From: Mika Fischer Date: Wed, 29 Jun 2011 14:15:45 +0200 Subject: [PATCH] Display class in treeview instead of type --- sloth/annotations/model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sloth/annotations/model.py b/sloth/annotations/model.py index 59fca57..382f12c 100644 --- a/sloth/annotations/model.py +++ b/sloth/annotations/model.py @@ -335,7 +335,7 @@ class AnnotationModelItem(KeyValueModelItem): def data(self, role=Qt.DisplayRole, column=0): if role == Qt.DisplayRole: if column == 0: - return self['type'] + return self['class'] else: return "" elif role == DataRole: