E5Gui/E5TreeSortFilterProxyModel.py

branch
Py2 comp.
changeset 3057
10516539f238
parent 2525
8b507a9a2d40
parent 2990
583beaf0b4b8
child 3145
a9de05d4a22f
equal deleted inserted replaced
3056:9986ec0e559a 3057:10516539f238
40 """ 40 """
41 idx = self.sourceModel().index(sourceRow, 0, sourceParent) 41 idx = self.sourceModel().index(sourceRow, 0, sourceParent)
42 if self.sourceModel().hasChildren(idx): 42 if self.sourceModel().hasChildren(idx):
43 return True 43 return True
44 44
45 return QSortFilterProxyModel.filterAcceptsRow(self, sourceRow, sourceParent) 45 return QSortFilterProxyModel.filterAcceptsRow(
46 self, sourceRow, sourceParent)
46 47
47 def hasChildren(self, parent=QModelIndex()): 48 def hasChildren(self, parent=QModelIndex()):
48 """ 49 """
49 Public method to check, if a parent node has some children. 50 Public method to check, if a parent node has some children.
50 51

eric ide

mercurial