E5Gui/E5TreeSortFilterProxyModel.py

changeset 2990
583beaf0b4b8
parent 2302
f29e9405c851
child 3057
10516539f238
child 3160
209a07d7e401
equal deleted inserted replaced
2989:7efa8b8b6903 2990:583beaf0b4b8
38 """ 38 """
39 idx = self.sourceModel().index(sourceRow, 0, sourceParent) 39 idx = self.sourceModel().index(sourceRow, 0, sourceParent)
40 if self.sourceModel().hasChildren(idx): 40 if self.sourceModel().hasChildren(idx):
41 return True 41 return True
42 42
43 return QSortFilterProxyModel.filterAcceptsRow(self, sourceRow, sourceParent) 43 return QSortFilterProxyModel.filterAcceptsRow(
44 self, sourceRow, sourceParent)
44 45
45 def hasChildren(self, parent=QModelIndex()): 46 def hasChildren(self, parent=QModelIndex()):
46 """ 47 """
47 Public method to check, if a parent node has some children. 48 Public method to check, if a parent node has some children.
48 49

eric ide

mercurial