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 |