~mcfletch/eric/update-to-4.5.13

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN'
'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
<html><head>
<title>eric4.E4Gui.E4TreeSortFilterProxyModel</title>
<style>
body {
    background:white;
    margin: 0em 1em 10em 1em;
    color: black;
}

h1 { color: white; background: #4FA4FF; }
h2 { color: white; background: #4FA4FF; }
h3 { color: white; background: #00557F; }
h4 { color: white; background: #00557F; }
    
a { color: #AA5500; }

</style>
</head>
<body><a NAME="top" ID="top"></a>
<h1>eric4.E4Gui.E4TreeSortFilterProxyModel</h1>
<p>
Module implementing a modified QSortFilterProxyModel.
</p>
<h3>Global Attributes</h3>
<table>
<tr><td>None</td></tr>
</table>
<h3>Classes</h3>
<table>
<tr>
<td><a href="#E4TreeSortFilterProxyModel">E4TreeSortFilterProxyModel</a></td>
<td>Class implementing a modified QSortFilterProxyModel.</td>
</tr>
</table>
<h3>Functions</h3>
<table>
<tr><td>None</td></tr>
</table>
<hr /><hr />
<a NAME="E4TreeSortFilterProxyModel" ID="E4TreeSortFilterProxyModel"></a>
<h2>E4TreeSortFilterProxyModel</h2>
<p>
    Class implementing a modified QSortFilterProxyModel.
</p><p>
    It always accepts the root nodes in the tree so filtering is only done
    on the children.
</p>
<h3>Derived from</h3>
QSortFilterProxyModel
<h3>Class Attributes</h3>
<table>
<tr><td>None</td></tr>
</table>
<h3>Class Methods</h3>
<table>
<tr><td>None</td></tr>
</table>
<h3>Methods</h3>
<table>
<tr>
<td><a href="#E4TreeSortFilterProxyModel.__init__">E4TreeSortFilterProxyModel</a></td>
<td>Constructor</td>
</tr><tr>
<td><a href="#E4TreeSortFilterProxyModel.filterAcceptsRow">filterAcceptsRow</a></td>
<td>Protected method to determine, if the row is acceptable.</td>
</tr><tr>
<td><a href="#E4TreeSortFilterProxyModel.hasChildren">hasChildren</a></td>
<td>Public method to check, if a parent node has some children.</td>
</tr>
</table>
<h3>Static Methods</h3>
<table>
<tr><td>None</td></tr>
</table>
<a NAME="E4TreeSortFilterProxyModel.__init__" ID="E4TreeSortFilterProxyModel.__init__"></a>
<h4>E4TreeSortFilterProxyModel (Constructor)</h4>
<b>E4TreeSortFilterProxyModel</b>(<i>parent = None</i>)
<p>
        Constructor
</p><dl>
<dt><i>parent</i></dt>
<dd>
reference to the parent object (QObject)
</dd>
</dl><a NAME="E4TreeSortFilterProxyModel.filterAcceptsRow" ID="E4TreeSortFilterProxyModel.filterAcceptsRow"></a>
<h4>E4TreeSortFilterProxyModel.filterAcceptsRow</h4>
<b>filterAcceptsRow</b>(<i>sourceRow, sourceParent</i>)
<p>
        Protected method to determine, if the row is acceptable.
</p><dl>
<dt><i>sourceRow</i></dt>
<dd>
row number in the source model (integer)
</dd><dt><i>sourceParent</i></dt>
<dd>
index of the source item (QModelIndex)
</dd>
</dl><dl>
<dt>Returns:</dt>
<dd>
flag indicating acceptance (boolean)
</dd>
</dl><a NAME="E4TreeSortFilterProxyModel.hasChildren" ID="E4TreeSortFilterProxyModel.hasChildren"></a>
<h4>E4TreeSortFilterProxyModel.hasChildren</h4>
<b>hasChildren</b>(<i>parent = QModelIndex()</i>)
<p>
        Public method to check, if a parent node has some children.
</p><dl>
<dt><i>parent</i></dt>
<dd>
index of the parent node (QModelIndex)
</dd>
</dl><dl>
<dt>Returns:</dt>
<dd>
flag indicating the presence of children (boolean)
</dd>
</dl>
<div align="right"><a href="#top">Up</a></div>
<hr />
</body></html>