From d5dbd9140227803fc56082fd393687af3d78c951 Mon Sep 17 00:00:00 2001 From: Mika Fischer Date: Tue, 14 Jun 2011 12:15:58 +0200 Subject: [PATCH] Don't derive ModelItem from QObject as it causes problems --- sloth/annotations/model.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sloth/annotations/model.py b/sloth/annotations/model.py index ebce7eb..42f56aa 100644 --- a/sloth/annotations/model.py +++ b/sloth/annotations/model.py @@ -2,12 +2,12 @@ The annotationmodel module contains the classes for the AnnotationModel. """ from PyQt4.QtGui import QTreeView, QSortFilterProxyModel, QAbstractItemView -from PyQt4.QtCore import QObject, QModelIndex, QPersistentModelIndex, QAbstractItemModel, QVariant, Qt, pyqtSignal +from PyQt4.QtCore import QModelIndex, QPersistentModelIndex, QAbstractItemModel, QVariant, Qt, pyqtSignal import os.path ItemRole, TypeRole, DataRole, ImageRole = [Qt.UserRole + i + 1 for i in range(4)] -class ModelItem(QObject): +class ModelItem: def __init__(self): self.children_ = [] self._pindex = None