46 @return flag indicating acceptance (boolean) |
46 @return flag indicating acceptance (boolean) |
47 """ |
47 """ |
48 idx = self.sourceModel().index(sourceRow, 0, sourceParent) |
48 idx = self.sourceModel().index(sourceRow, 0, sourceParent) |
49 return self.sourceModel().hasChildren(idx) |
49 return self.sourceModel().hasChildren(idx) |
50 |
50 |
51 def filterAcceptsColumn(self, sourceColumn, sourceParent): |
51 def filterAcceptsColumn(self, sourceColumn, sourceParent): # noqa: U100 |
52 """ |
52 """ |
53 Public method to determine, if the column is acceptable. |
53 Public method to determine, if the column is acceptable. |
54 |
54 |
55 @param sourceColumn column number in the source model (integer) |
55 @param sourceColumn column number in the source model (integer) |
56 @param sourceParent index of the source item (QModelIndex) |
56 @param sourceParent index of the source item (QModelIndex) |