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 |