eric7.EricCore.EricTreeSortFilterProxyModel
Module implementing a modified QSortFilterProxyModel.
Global Attributes
Classes
Functions
EricTreeSortFilterProxyModel
Class implementing a modified QSortFilterProxyModel.
It always accepts the root nodes in the tree so filtering is only done
on the children.
Derived from
QSortFilterProxyModel
Class Attributes
Class Methods
Methods
Static Methods
EricTreeSortFilterProxyModel (Constructor)
EricTreeSortFilterProxyModel(parent=None)
Constructor
- parent (QObject)
-
reference to the parent object
EricTreeSortFilterProxyModel.filterAcceptsRow
filterAcceptsRow(sourceRow, sourceParent)
Public method to determine, if the row is acceptable.
- sourceRow (int)
-
row number in the source model
- sourceParent (QModelIndex)
-
index of the source item
- Return:
-
flag indicating acceptance
- Return Type:
-
bool
EricTreeSortFilterProxyModel.hasChildren
hasChildren(parent=None)
Public method to check, if a parent node has some children.
- parent (QModelIndex)
-
index of the parent node
- Return:
-
flag indicating the presence of children
- Return Type:
-
bool