--- a/E5Gui/E5TreeView.py Fri Mar 11 08:55:14 2011 +0100 +++ b/E5Gui/E5TreeView.py Fri Mar 11 16:51:57 2011 +0100 @@ -4,12 +4,13 @@ # """ -Module implementing specialized tree views. +Module implementing specialized tree views. """ from PyQt4.QtCore import Qt from PyQt4.QtGui import QTreeView + class E5TreeView(QTreeView): """ Class implementing a tree view supporting removal of entries. @@ -46,5 +47,5 @@ Public method to clear the view. """ if self.model() is not None: - self.model().removeRows(0, self.model().rowCount(self.rootIndex()), + self.model().removeRows(0, self.model().rowCount(self.rootIndex()), self.rootIndex())