43 <h2>E5TextEditSearchWidget</h2> |
43 <h2>E5TextEditSearchWidget</h2> |
44 <p> |
44 <p> |
45 Class implementing a horizontal search widget for QTextEdit. |
45 Class implementing a horizontal search widget for QTextEdit. |
46 </p> |
46 </p> |
47 <h3>Derived from</h3> |
47 <h3>Derived from</h3> |
48 QWidget, Ui_E5TextEditSearchWidget |
48 QWidget |
49 <h3>Class Attributes</h3> |
49 <h3>Class Attributes</h3> |
50 <table> |
50 <table> |
51 <tr><td>None</td></tr> |
51 <tr><td>None</td></tr> |
52 </table> |
52 </table> |
53 <h3>Class Methods</h3> |
53 <h3>Class Methods</h3> |
82 <td>Private slot to change the findtext combo background to indicate errors.</td> |
82 <td>Private slot to change the findtext combo background to indicate errors.</td> |
83 </tr><tr> |
83 </tr><tr> |
84 <td><a href="#E5TextEditSearchWidget.__setSearchButtons">__setSearchButtons</a></td> |
84 <td><a href="#E5TextEditSearchWidget.__setSearchButtons">__setSearchButtons</a></td> |
85 <td>Private slot to set the state of the search buttons.</td> |
85 <td>Private slot to set the state of the search buttons.</td> |
86 </tr><tr> |
86 </tr><tr> |
|
87 <td><a href="#E5TextEditSearchWidget.__setupUi">__setupUi</a></td> |
|
88 <td>Private method to generate the UI.</td> |
|
89 </tr><tr> |
87 <td><a href="#E5TextEditSearchWidget.attachTextEdit">attachTextEdit</a></td> |
90 <td><a href="#E5TextEditSearchWidget.attachTextEdit">attachTextEdit</a></td> |
88 <td>Public method to attach a QTextEdit widget.</td> |
91 <td>Public method to attach a QTextEdit widget.</td> |
89 </tr><tr> |
92 </tr><tr> |
90 <td><a href="#E5TextEditSearchWidget.keyPressEvent">keyPressEvent</a></td> |
93 <td><a href="#E5TextEditSearchWidget.keyPressEvent">keyPressEvent</a></td> |
91 <td>Protected slot to handle key press events.</td> |
94 <td>Protected slot to handle key press events.</td> |
104 <table> |
107 <table> |
105 <tr><td>None</td></tr> |
108 <tr><td>None</td></tr> |
106 </table> |
109 </table> |
107 <a NAME="E5TextEditSearchWidget.__init__" ID="E5TextEditSearchWidget.__init__"></a> |
110 <a NAME="E5TextEditSearchWidget.__init__" ID="E5TextEditSearchWidget.__init__"></a> |
108 <h4>E5TextEditSearchWidget (Constructor)</h4> |
111 <h4>E5TextEditSearchWidget (Constructor)</h4> |
109 <b>E5TextEditSearchWidget</b>(<i>parent=None</i>) |
112 <b>E5TextEditSearchWidget</b>(<i>parent=None, widthForHeight=True</i>) |
110 <p> |
113 <p> |
111 Constructor |
114 Constructor |
112 </p><dl> |
115 </p><dl> |
113 <dt><i>parent</i></dt> |
116 <dt><i>parent</i> (QWidget)</dt> |
114 <dd> |
117 <dd> |
115 reference to the parent widget (QWidget) |
118 reference to the parent widget |
|
119 </dd><dt><i>widthForHeight</i> (bool)</dt> |
|
120 <dd> |
|
121 flag indicating to prefer width for height. |
|
122 If this parameter is False, some widgets are shown in a third |
|
123 line. |
116 </dd> |
124 </dd> |
117 </dl><a NAME="E5TextEditSearchWidget.__find" ID="E5TextEditSearchWidget.__find"></a> |
125 </dl><a NAME="E5TextEditSearchWidget.__find" ID="E5TextEditSearchWidget.__find"></a> |
118 <h4>E5TextEditSearchWidget.__find</h4> |
126 <h4>E5TextEditSearchWidget.__find</h4> |
119 <b>__find</b>(<i>backwards</i>) |
127 <b>__find</b>(<i>backwards</i>) |
120 <p> |
128 <p> |
212 </p><dl> |
220 </p><dl> |
213 <dt><i>enabled</i></dt> |
221 <dt><i>enabled</i></dt> |
214 <dd> |
222 <dd> |
215 flag indicating the state (boolean) |
223 flag indicating the state (boolean) |
216 </dd> |
224 </dd> |
|
225 </dl><a NAME="E5TextEditSearchWidget.__setupUi" ID="E5TextEditSearchWidget.__setupUi"></a> |
|
226 <h4>E5TextEditSearchWidget.__setupUi</h4> |
|
227 <b>__setupUi</b>(<i>widthForHeight</i>) |
|
228 <p> |
|
229 Private method to generate the UI. |
|
230 </p><dl> |
|
231 <dt><i>widthForHeight</i> (bool)</dt> |
|
232 <dd> |
|
233 flag indicating to prefer width for height |
|
234 </dd> |
217 </dl><a NAME="E5TextEditSearchWidget.attachTextEdit" ID="E5TextEditSearchWidget.attachTextEdit"></a> |
235 </dl><a NAME="E5TextEditSearchWidget.attachTextEdit" ID="E5TextEditSearchWidget.attachTextEdit"></a> |
218 <h4>E5TextEditSearchWidget.attachTextEdit</h4> |
236 <h4>E5TextEditSearchWidget.attachTextEdit</h4> |
219 <b>attachTextEdit</b>(<i>textedit, editType="QTextEdit"</i>) |
237 <b>attachTextEdit</b>(<i>textedit, editType="QTextEdit"</i>) |
220 <p> |
238 <p> |
221 Public method to attach a QTextEdit widget. |
239 Public method to attach a QTextEdit widget. |