59 </table> |
59 </table> |
60 <h3>Methods</h3> |
60 <h3>Methods</h3> |
61 <table> |
61 <table> |
62 <tr> |
62 <tr> |
63 <td><a href="#E5ModelMenu.__init__">E5ModelMenu</a></td> |
63 <td><a href="#E5ModelMenu.__init__">E5ModelMenu</a></td> |
64 <td>Constructor</td> |
64 <td>Constructor</td> |
65 </tr><tr> |
65 </tr><tr> |
66 <td><a href="#E5ModelMenu.__aboutToShow">__aboutToShow</a></td> |
66 <td><a href="#E5ModelMenu.__aboutToShow">__aboutToShow</a></td> |
67 <td>Private slot to show the menu.</td> |
67 <td>Private slot to show the menu.</td> |
68 </tr><tr> |
68 </tr><tr> |
69 <td><a href="#E5ModelMenu.__actionTriggered">__actionTriggered</a></td> |
69 <td><a href="#E5ModelMenu.__actionTriggered">__actionTriggered</a></td> |
70 <td>Private slot to handle the triggering of an action.</td> |
70 <td>Private slot to handle the triggering of an action.</td> |
71 </tr><tr> |
71 </tr><tr> |
72 <td><a href="#E5ModelMenu.__makeAction">__makeAction</a></td> |
72 <td><a href="#E5ModelMenu.__makeAction">__makeAction</a></td> |
73 <td>Private method to create an action.</td> |
73 <td>Private method to create an action.</td> |
74 </tr><tr> |
74 </tr><tr> |
75 <td><a href="#E5ModelMenu.createBaseMenu">createBaseMenu</a></td> |
75 <td><a href="#E5ModelMenu.createBaseMenu">createBaseMenu</a></td> |
76 <td>Public method to get the menu that is used to populate sub menu's.</td> |
76 <td>Public method to get the menu that is used to populate sub menu's.</td> |
77 </tr><tr> |
77 </tr><tr> |
78 <td><a href="#E5ModelMenu.createMenu">createMenu</a></td> |
78 <td><a href="#E5ModelMenu.createMenu">createMenu</a></td> |
79 <td>Public method to put all the children of a parent into a menu of a given length.</td> |
79 <td>Public method to put all the children of a parent into a menu of a given length.</td> |
80 </tr><tr> |
80 </tr><tr> |
81 <td><a href="#E5ModelMenu.dragEnterEvent">dragEnterEvent</a></td> |
81 <td><a href="#E5ModelMenu.dragEnterEvent">dragEnterEvent</a></td> |
82 <td>Protected method to handle drag enter events.</td> |
82 <td>Protected method to handle drag enter events.</td> |
83 </tr><tr> |
83 </tr><tr> |
84 <td><a href="#E5ModelMenu.dropEvent">dropEvent</a></td> |
84 <td><a href="#E5ModelMenu.dropEvent">dropEvent</a></td> |
85 <td>Protected method to handle drop events.</td> |
85 <td>Protected method to handle drop events.</td> |
86 </tr><tr> |
86 </tr><tr> |
87 <td><a href="#E5ModelMenu.firstSeparator">firstSeparator</a></td> |
87 <td><a href="#E5ModelMenu.firstSeparator">firstSeparator</a></td> |
88 <td>Public method to get the first separator.</td> |
88 <td>Public method to get the first separator.</td> |
89 </tr><tr> |
89 </tr><tr> |
90 <td><a href="#E5ModelMenu.index">index</a></td> |
90 <td><a href="#E5ModelMenu.index">index</a></td> |
91 <td>Public method to get the index of an action.</td> |
91 <td>Public method to get the index of an action.</td> |
92 </tr><tr> |
92 </tr><tr> |
93 <td><a href="#E5ModelMenu.makeAction">makeAction</a></td> |
93 <td><a href="#E5ModelMenu.makeAction">makeAction</a></td> |
94 <td>Public method to create an action.</td> |
94 <td>Public method to create an action.</td> |
95 </tr><tr> |
95 </tr><tr> |
96 <td><a href="#E5ModelMenu.maxRows">maxRows</a></td> |
96 <td><a href="#E5ModelMenu.maxRows">maxRows</a></td> |
97 <td>Public method to get the maximum number of entries to show.</td> |
97 <td>Public method to get the maximum number of entries to show.</td> |
98 </tr><tr> |
98 </tr><tr> |
99 <td><a href="#E5ModelMenu.model">model</a></td> |
99 <td><a href="#E5ModelMenu.model">model</a></td> |
100 <td>Public method to get a reference to the model.</td> |
100 <td>Public method to get a reference to the model.</td> |
101 </tr><tr> |
101 </tr><tr> |
102 <td><a href="#E5ModelMenu.mouseMoveEvent">mouseMoveEvent</a></td> |
102 <td><a href="#E5ModelMenu.mouseMoveEvent">mouseMoveEvent</a></td> |
103 <td>Protected method to handle mouse move events.</td> |
103 <td>Protected method to handle mouse move events.</td> |
104 </tr><tr> |
104 </tr><tr> |
105 <td><a href="#E5ModelMenu.mousePressEvent">mousePressEvent</a></td> |
105 <td><a href="#E5ModelMenu.mousePressEvent">mousePressEvent</a></td> |
106 <td>Protected method handling mouse press events.</td> |
106 <td>Protected method handling mouse press events.</td> |
107 </tr><tr> |
107 </tr><tr> |
108 <td><a href="#E5ModelMenu.mouseReleaseEvent">mouseReleaseEvent</a></td> |
108 <td><a href="#E5ModelMenu.mouseReleaseEvent">mouseReleaseEvent</a></td> |
109 <td>Protected method handling mouse release events.</td> |
109 <td>Protected method handling mouse release events.</td> |
110 </tr><tr> |
110 </tr><tr> |
111 <td><a href="#E5ModelMenu.postPopulated">postPopulated</a></td> |
111 <td><a href="#E5ModelMenu.postPopulated">postPopulated</a></td> |
112 <td>Public method to add any actions after the tree.</td> |
112 <td>Public method to add any actions after the tree.</td> |
113 </tr><tr> |
113 </tr><tr> |
114 <td><a href="#E5ModelMenu.prePopulated">prePopulated</a></td> |
114 <td><a href="#E5ModelMenu.prePopulated">prePopulated</a></td> |
115 <td>Public method to add any actions before the tree.</td> |
115 <td>Public method to add any actions before the tree.</td> |
116 </tr><tr> |
116 </tr><tr> |
117 <td><a href="#E5ModelMenu.removeEntry">removeEntry</a></td> |
117 <td><a href="#E5ModelMenu.removeEntry">removeEntry</a></td> |
118 <td>Public method to remove a menu entry.</td> |
118 <td>Public method to remove a menu entry.</td> |
119 </tr><tr> |
119 </tr><tr> |
120 <td><a href="#E5ModelMenu.resetFlags">resetFlags</a></td> |
120 <td><a href="#E5ModelMenu.resetFlags">resetFlags</a></td> |
121 <td>Public method to reset the saved internal state.</td> |
121 <td>Public method to reset the saved internal state.</td> |
122 </tr><tr> |
122 </tr><tr> |
123 <td><a href="#E5ModelMenu.rootIndex">rootIndex</a></td> |
123 <td><a href="#E5ModelMenu.rootIndex">rootIndex</a></td> |
124 <td>Public method to get the index of the root item.</td> |
124 <td>Public method to get the index of the root item.</td> |
125 </tr><tr> |
125 </tr><tr> |
126 <td><a href="#E5ModelMenu.separatorRole">separatorRole</a></td> |
126 <td><a href="#E5ModelMenu.separatorRole">separatorRole</a></td> |
127 <td>Public method to get the role of the separator.</td> |
127 <td>Public method to get the role of the separator.</td> |
128 </tr><tr> |
128 </tr><tr> |
129 <td><a href="#E5ModelMenu.setFirstSeparator">setFirstSeparator</a></td> |
129 <td><a href="#E5ModelMenu.setFirstSeparator">setFirstSeparator</a></td> |
130 <td>Public method to set the first separator.</td> |
130 <td>Public method to set the first separator.</td> |
131 </tr><tr> |
131 </tr><tr> |
132 <td><a href="#E5ModelMenu.setMaxRows">setMaxRows</a></td> |
132 <td><a href="#E5ModelMenu.setMaxRows">setMaxRows</a></td> |
133 <td>Public method to set the maximum number of entries to show.</td> |
133 <td>Public method to set the maximum number of entries to show.</td> |
134 </tr><tr> |
134 </tr><tr> |
135 <td><a href="#E5ModelMenu.setModel">setModel</a></td> |
135 <td><a href="#E5ModelMenu.setModel">setModel</a></td> |
136 <td>Public method to set the model for the menu.</td> |
136 <td>Public method to set the model for the menu.</td> |
137 </tr><tr> |
137 </tr><tr> |
138 <td><a href="#E5ModelMenu.setRootIndex">setRootIndex</a></td> |
138 <td><a href="#E5ModelMenu.setRootIndex">setRootIndex</a></td> |
139 <td>Public method to set the index of the root item.</td> |
139 <td>Public method to set the index of the root item.</td> |
140 </tr><tr> |
140 </tr><tr> |
141 <td><a href="#E5ModelMenu.setSeparatorRole">setSeparatorRole</a></td> |
141 <td><a href="#E5ModelMenu.setSeparatorRole">setSeparatorRole</a></td> |
142 <td>Public method to set the role of the separator.</td> |
142 <td>Public method to set the role of the separator.</td> |
143 </tr><tr> |
143 </tr><tr> |
144 <td><a href="#E5ModelMenu.setStatusBarTextRole">setStatusBarTextRole</a></td> |
144 <td><a href="#E5ModelMenu.setStatusBarTextRole">setStatusBarTextRole</a></td> |
145 <td>Public method to set the role of the status bar text.</td> |
145 <td>Public method to set the role of the status bar text.</td> |
146 </tr><tr> |
146 </tr><tr> |
147 <td><a href="#E5ModelMenu.statusBarTextRole">statusBarTextRole</a></td> |
147 <td><a href="#E5ModelMenu.statusBarTextRole">statusBarTextRole</a></td> |
148 <td>Public method to get the role of the status bar text.</td> |
148 <td>Public method to get the role of the status bar text.</td> |
149 </tr> |
149 </tr> |
150 </table> |
150 </table> |
151 <a NAME="E5ModelMenu.__init__" ID="E5ModelMenu.__init__"></a> |
151 <a NAME="E5ModelMenu.__init__" ID="E5ModelMenu.__init__"></a> |
152 <h4>E5ModelMenu (Constructor)</h4> |
152 <h4>E5ModelMenu (Constructor)</h4> |
153 <b>E5ModelMenu</b>(<i>parent = None</i>) |
153 <b>E5ModelMenu</b>(<i>parent = None</i>) |
154 <p> |
154 <p> |
155 Constructor |
155 Constructor |
156 </p><dl> |
156 </p><dl> |
157 <dt><i>parent</i></dt> |
157 <dt><i>parent</i></dt> |
158 <dd> |
158 <dd> |
159 reference to the parent widget (QWidget) |
159 reference to the parent widget (QWidget) |
160 </dd> |
160 </dd> |
161 </dl><a NAME="E5ModelMenu.__aboutToShow" ID="E5ModelMenu.__aboutToShow"></a> |
161 </dl><a NAME="E5ModelMenu.__aboutToShow" ID="E5ModelMenu.__aboutToShow"></a> |
162 <h4>E5ModelMenu.__aboutToShow</h4> |
162 <h4>E5ModelMenu.__aboutToShow</h4> |
163 <b>__aboutToShow</b>(<i></i>) |
163 <b>__aboutToShow</b>(<i></i>) |
164 <p> |
164 <p> |
165 Private slot to show the menu. |
165 Private slot to show the menu. |
166 </p><a NAME="E5ModelMenu.__actionTriggered" ID="E5ModelMenu.__actionTriggered"></a> |
166 </p><a NAME="E5ModelMenu.__actionTriggered" ID="E5ModelMenu.__actionTriggered"></a> |
167 <h4>E5ModelMenu.__actionTriggered</h4> |
167 <h4>E5ModelMenu.__actionTriggered</h4> |
168 <b>__actionTriggered</b>(<i>action</i>) |
168 <b>__actionTriggered</b>(<i>action</i>) |
169 <p> |
169 <p> |
170 Private slot to handle the triggering of an action. |
170 Private slot to handle the triggering of an action. |
171 </p><dl> |
171 </p><dl> |
172 <dt><i>action</i></dt> |
172 <dt><i>action</i></dt> |
173 <dd> |
173 <dd> |
174 reference to the action that was triggered (QAction) |
174 reference to the action that was triggered (QAction) |
175 </dd> |
175 </dd> |
176 </dl><a NAME="E5ModelMenu.__makeAction" ID="E5ModelMenu.__makeAction"></a> |
176 </dl><a NAME="E5ModelMenu.__makeAction" ID="E5ModelMenu.__makeAction"></a> |
177 <h4>E5ModelMenu.__makeAction</h4> |
177 <h4>E5ModelMenu.__makeAction</h4> |
178 <b>__makeAction</b>(<i>idx</i>) |
178 <b>__makeAction</b>(<i>idx</i>) |
179 <p> |
179 <p> |
180 Private method to create an action. |
180 Private method to create an action. |
181 </p><dl> |
181 </p><dl> |
182 <dt><i>idx</i></dt> |
182 <dt><i>idx</i></dt> |
183 <dd> |
183 <dd> |
184 index of the item to create an action for (QModelIndex) |
184 index of the item to create an action for (QModelIndex) |
185 </dd> |
185 </dd> |
186 </dl><dl> |
186 </dl><dl> |
187 <dt>Returns:</dt> |
187 <dt>Returns:</dt> |
188 <dd> |
188 <dd> |
189 reference to the created action (QAction) |
189 reference to the created action (QAction) |
190 </dd> |
190 </dd> |
191 </dl><a NAME="E5ModelMenu.createBaseMenu" ID="E5ModelMenu.createBaseMenu"></a> |
191 </dl><a NAME="E5ModelMenu.createBaseMenu" ID="E5ModelMenu.createBaseMenu"></a> |
192 <h4>E5ModelMenu.createBaseMenu</h4> |
192 <h4>E5ModelMenu.createBaseMenu</h4> |
193 <b>createBaseMenu</b>(<i></i>) |
193 <b>createBaseMenu</b>(<i></i>) |
194 <p> |
194 <p> |
195 Public method to get the menu that is used to populate sub menu's. |
195 Public method to get the menu that is used to populate sub menu's. |
196 </p><dl> |
196 </p><dl> |
197 <dt>Returns:</dt> |
197 <dt>Returns:</dt> |
198 <dd> |
198 <dd> |
199 reference to the menu (E5ModelMenu) |
199 reference to the menu (E5ModelMenu) |
200 </dd> |
200 </dd> |
201 </dl><a NAME="E5ModelMenu.createMenu" ID="E5ModelMenu.createMenu"></a> |
201 </dl><a NAME="E5ModelMenu.createMenu" ID="E5ModelMenu.createMenu"></a> |
202 <h4>E5ModelMenu.createMenu</h4> |
202 <h4>E5ModelMenu.createMenu</h4> |
203 <b>createMenu</b>(<i>parent, max_, parentMenu = None, menu = None</i>) |
203 <b>createMenu</b>(<i>parent, max_, parentMenu = None, menu = None</i>) |
204 <p> |
204 <p> |
205 Public method to put all the children of a parent into a menu of a given length. |
205 Public method to put all the children of a parent into a menu of a given length. |
206 </p><dl> |
206 </p><dl> |
207 <dt><i>parent</i></dt> |
207 <dt><i>parent</i></dt> |
208 <dd> |
208 <dd> |
209 index of the parent item (QModelIndex) |
209 index of the parent item (QModelIndex) |
210 </dd><dt><i>max_</i></dt> |
210 </dd><dt><i>max_</i></dt> |
211 <dd> |
211 <dd> |
212 maximum number of entries (integer) |
212 maximum number of entries (integer) |
213 </dd><dt><i>parentMenu</i></dt> |
213 </dd><dt><i>parentMenu</i></dt> |
214 <dd> |
214 <dd> |
215 reference to the parent menu (QMenu) |
215 reference to the parent menu (QMenu) |
216 </dd><dt><i>menu</i></dt> |
216 </dd><dt><i>menu</i></dt> |
217 <dd> |
217 <dd> |
218 reference to the menu to be populated (QMenu) |
218 reference to the menu to be populated (QMenu) |
219 </dd> |
219 </dd> |
220 </dl><a NAME="E5ModelMenu.dragEnterEvent" ID="E5ModelMenu.dragEnterEvent"></a> |
220 </dl><a NAME="E5ModelMenu.dragEnterEvent" ID="E5ModelMenu.dragEnterEvent"></a> |
221 <h4>E5ModelMenu.dragEnterEvent</h4> |
221 <h4>E5ModelMenu.dragEnterEvent</h4> |
222 <b>dragEnterEvent</b>(<i>evt</i>) |
222 <b>dragEnterEvent</b>(<i>evt</i>) |
223 <p> |
223 <p> |
224 Protected method to handle drag enter events. |
224 Protected method to handle drag enter events. |
225 </p><dl> |
225 </p><dl> |
226 <dt><i>evt</i></dt> |
226 <dt><i>evt</i></dt> |
227 <dd> |
227 <dd> |
228 reference to the event (QDragEnterEvent) |
228 reference to the event (QDragEnterEvent) |
229 </dd> |
229 </dd> |
230 </dl><a NAME="E5ModelMenu.dropEvent" ID="E5ModelMenu.dropEvent"></a> |
230 </dl><a NAME="E5ModelMenu.dropEvent" ID="E5ModelMenu.dropEvent"></a> |
231 <h4>E5ModelMenu.dropEvent</h4> |
231 <h4>E5ModelMenu.dropEvent</h4> |
232 <b>dropEvent</b>(<i>evt</i>) |
232 <b>dropEvent</b>(<i>evt</i>) |
233 <p> |
233 <p> |
234 Protected method to handle drop events. |
234 Protected method to handle drop events. |
235 </p><dl> |
235 </p><dl> |
236 <dt><i>evt</i></dt> |
236 <dt><i>evt</i></dt> |
237 <dd> |
237 <dd> |
238 reference to the event (QDropEvent) |
238 reference to the event (QDropEvent) |
239 </dd> |
239 </dd> |
240 </dl><a NAME="E5ModelMenu.firstSeparator" ID="E5ModelMenu.firstSeparator"></a> |
240 </dl><a NAME="E5ModelMenu.firstSeparator" ID="E5ModelMenu.firstSeparator"></a> |
241 <h4>E5ModelMenu.firstSeparator</h4> |
241 <h4>E5ModelMenu.firstSeparator</h4> |
242 <b>firstSeparator</b>(<i></i>) |
242 <b>firstSeparator</b>(<i></i>) |
243 <p> |
243 <p> |
244 Public method to get the first separator. |
244 Public method to get the first separator. |
245 </p><dl> |
245 </p><dl> |
246 <dt>Returns:</dt> |
246 <dt>Returns:</dt> |
247 <dd> |
247 <dd> |
248 row number of the first separator (integer) |
248 row number of the first separator (integer) |
249 </dd> |
249 </dd> |
250 </dl><a NAME="E5ModelMenu.index" ID="E5ModelMenu.index"></a> |
250 </dl><a NAME="E5ModelMenu.index" ID="E5ModelMenu.index"></a> |
251 <h4>E5ModelMenu.index</h4> |
251 <h4>E5ModelMenu.index</h4> |
252 <b>index</b>(<i>action</i>) |
252 <b>index</b>(<i>action</i>) |
253 <p> |
253 <p> |
254 Public method to get the index of an action. |
254 Public method to get the index of an action. |
255 </p><dl> |
255 </p><dl> |
256 <dt><i>action</i></dt> |
256 <dt><i>action</i></dt> |
257 <dd> |
257 <dd> |
258 reference to the action to get the index for (QAction) |
258 reference to the action to get the index for (QAction) |
259 </dd> |
259 </dd> |
260 </dl><dl> |
260 </dl><dl> |
261 <dt>Returns:</dt> |
261 <dt>Returns:</dt> |
262 <dd> |
262 <dd> |
263 index of the action (QModelIndex) |
263 index of the action (QModelIndex) |
264 </dd> |
264 </dd> |
265 </dl><a NAME="E5ModelMenu.makeAction" ID="E5ModelMenu.makeAction"></a> |
265 </dl><a NAME="E5ModelMenu.makeAction" ID="E5ModelMenu.makeAction"></a> |
266 <h4>E5ModelMenu.makeAction</h4> |
266 <h4>E5ModelMenu.makeAction</h4> |
267 <b>makeAction</b>(<i>icon, text, parent</i>) |
267 <b>makeAction</b>(<i>icon, text, parent</i>) |
268 <p> |
268 <p> |
269 Public method to create an action. |
269 Public method to create an action. |
270 </p><dl> |
270 </p><dl> |
271 <dt><i>icon</i></dt> |
271 <dt><i>icon</i></dt> |
272 <dd> |
272 <dd> |
273 icon of the action (QIcon) |
273 icon of the action (QIcon) |
274 </dd><dt><i>text</i></dt> |
274 </dd><dt><i>text</i></dt> |
275 <dd> |
275 <dd> |
276 text of the action (string) |
276 text of the action (string) |
277 </dd><dt><i>reference</i></dt> |
277 </dd><dt><i>reference</i></dt> |
278 <dd> |
278 <dd> |
279 to the parent object (QObject) |
279 to the parent object (QObject) |
280 </dd> |
280 </dd> |
281 </dl><dl> |
281 </dl><dl> |
282 <dt>Returns:</dt> |
282 <dt>Returns:</dt> |
283 <dd> |
283 <dd> |
284 reference to the created action (QAction) |
284 reference to the created action (QAction) |
285 </dd> |
285 </dd> |
286 </dl><a NAME="E5ModelMenu.maxRows" ID="E5ModelMenu.maxRows"></a> |
286 </dl><a NAME="E5ModelMenu.maxRows" ID="E5ModelMenu.maxRows"></a> |
287 <h4>E5ModelMenu.maxRows</h4> |
287 <h4>E5ModelMenu.maxRows</h4> |
288 <b>maxRows</b>(<i></i>) |
288 <b>maxRows</b>(<i></i>) |
289 <p> |
289 <p> |
290 Public method to get the maximum number of entries to show. |
290 Public method to get the maximum number of entries to show. |
291 </p><dl> |
291 </p><dl> |
292 <dt>Returns:</dt> |
292 <dt>Returns:</dt> |
293 <dd> |
293 <dd> |
294 maximum number of entries to show (integer) |
294 maximum number of entries to show (integer) |
295 </dd> |
295 </dd> |
296 </dl><a NAME="E5ModelMenu.model" ID="E5ModelMenu.model"></a> |
296 </dl><a NAME="E5ModelMenu.model" ID="E5ModelMenu.model"></a> |
297 <h4>E5ModelMenu.model</h4> |
297 <h4>E5ModelMenu.model</h4> |
298 <b>model</b>(<i></i>) |
298 <b>model</b>(<i></i>) |
299 <p> |
299 <p> |
300 Public method to get a reference to the model. |
300 Public method to get a reference to the model. |
301 </p><dl> |
301 </p><dl> |
302 <dt>Returns:</dt> |
302 <dt>Returns:</dt> |
303 <dd> |
303 <dd> |
304 reference to the model (QAbstractItemModel) |
304 reference to the model (QAbstractItemModel) |
305 </dd> |
305 </dd> |
306 </dl><a NAME="E5ModelMenu.mouseMoveEvent" ID="E5ModelMenu.mouseMoveEvent"></a> |
306 </dl><a NAME="E5ModelMenu.mouseMoveEvent" ID="E5ModelMenu.mouseMoveEvent"></a> |
307 <h4>E5ModelMenu.mouseMoveEvent</h4> |
307 <h4>E5ModelMenu.mouseMoveEvent</h4> |
308 <b>mouseMoveEvent</b>(<i>evt</i>) |
308 <b>mouseMoveEvent</b>(<i>evt</i>) |
309 <p> |
309 <p> |
310 Protected method to handle mouse move events. |
310 Protected method to handle mouse move events. |
311 </p><dl> |
311 </p><dl> |
312 <dt><i>evt</i></dt> |
312 <dt><i>evt</i></dt> |
313 <dd> |
313 <dd> |
314 reference to the event (QMouseEvent) |
314 reference to the event (QMouseEvent) |
315 </dd> |
315 </dd> |
316 </dl><a NAME="E5ModelMenu.mousePressEvent" ID="E5ModelMenu.mousePressEvent"></a> |
316 </dl><a NAME="E5ModelMenu.mousePressEvent" ID="E5ModelMenu.mousePressEvent"></a> |
317 <h4>E5ModelMenu.mousePressEvent</h4> |
317 <h4>E5ModelMenu.mousePressEvent</h4> |
318 <b>mousePressEvent</b>(<i>evt</i>) |
318 <b>mousePressEvent</b>(<i>evt</i>) |
319 <p> |
319 <p> |
320 Protected method handling mouse press events. |
320 Protected method handling mouse press events. |
321 </p><dl> |
321 </p><dl> |
322 <dt><i>evt</i></dt> |
322 <dt><i>evt</i></dt> |
323 <dd> |
323 <dd> |
324 reference to the event object (QMouseEvent) |
324 reference to the event object (QMouseEvent) |
325 </dd> |
325 </dd> |
326 </dl><a NAME="E5ModelMenu.mouseReleaseEvent" ID="E5ModelMenu.mouseReleaseEvent"></a> |
326 </dl><a NAME="E5ModelMenu.mouseReleaseEvent" ID="E5ModelMenu.mouseReleaseEvent"></a> |
327 <h4>E5ModelMenu.mouseReleaseEvent</h4> |
327 <h4>E5ModelMenu.mouseReleaseEvent</h4> |
328 <b>mouseReleaseEvent</b>(<i>evt</i>) |
328 <b>mouseReleaseEvent</b>(<i>evt</i>) |
329 <p> |
329 <p> |
330 Protected method handling mouse release events. |
330 Protected method handling mouse release events. |
331 </p><dl> |
331 </p><dl> |
332 <dt><i>evt</i></dt> |
332 <dt><i>evt</i></dt> |
333 <dd> |
333 <dd> |
334 reference to the event object (QMouseEvent) |
334 reference to the event object (QMouseEvent) |
335 </dd> |
335 </dd> |
336 </dl><a NAME="E5ModelMenu.postPopulated" ID="E5ModelMenu.postPopulated"></a> |
336 </dl><a NAME="E5ModelMenu.postPopulated" ID="E5ModelMenu.postPopulated"></a> |
337 <h4>E5ModelMenu.postPopulated</h4> |
337 <h4>E5ModelMenu.postPopulated</h4> |
338 <b>postPopulated</b>(<i></i>) |
338 <b>postPopulated</b>(<i></i>) |
339 <p> |
339 <p> |
340 Public method to add any actions after the tree. |
340 Public method to add any actions after the tree. |
341 </p><a NAME="E5ModelMenu.prePopulated" ID="E5ModelMenu.prePopulated"></a> |
341 </p><a NAME="E5ModelMenu.prePopulated" ID="E5ModelMenu.prePopulated"></a> |
342 <h4>E5ModelMenu.prePopulated</h4> |
342 <h4>E5ModelMenu.prePopulated</h4> |
343 <b>prePopulated</b>(<i></i>) |
343 <b>prePopulated</b>(<i></i>) |
344 <p> |
344 <p> |
345 Public method to add any actions before the tree. |
345 Public method to add any actions before the tree. |
346 </p><dl> |
346 </p><dl> |
347 <dt>Returns:</dt> |
347 <dt>Returns:</dt> |
348 <dd> |
348 <dd> |
349 flag indicating if any actions were added |
349 flag indicating if any actions were added |
350 </dd> |
350 </dd> |
351 </dl><a NAME="E5ModelMenu.removeEntry" ID="E5ModelMenu.removeEntry"></a> |
351 </dl><a NAME="E5ModelMenu.removeEntry" ID="E5ModelMenu.removeEntry"></a> |
352 <h4>E5ModelMenu.removeEntry</h4> |
352 <h4>E5ModelMenu.removeEntry</h4> |
353 <b>removeEntry</b>(<i>idx</i>) |
353 <b>removeEntry</b>(<i>idx</i>) |
354 <p> |
354 <p> |
355 Public method to remove a menu entry. |
355 Public method to remove a menu entry. |
356 </p><dl> |
356 </p><dl> |
357 <dt><i>idx</i></dt> |
357 <dt><i>idx</i></dt> |
358 <dd> |
358 <dd> |
359 index of the entry to be removed (QModelIndex) |
359 index of the entry to be removed (QModelIndex) |
360 </dd> |
360 </dd> |
361 </dl><a NAME="E5ModelMenu.resetFlags" ID="E5ModelMenu.resetFlags"></a> |
361 </dl><a NAME="E5ModelMenu.resetFlags" ID="E5ModelMenu.resetFlags"></a> |
362 <h4>E5ModelMenu.resetFlags</h4> |
362 <h4>E5ModelMenu.resetFlags</h4> |
363 <b>resetFlags</b>(<i></i>) |
363 <b>resetFlags</b>(<i></i>) |
364 <p> |
364 <p> |
365 Public method to reset the saved internal state. |
365 Public method to reset the saved internal state. |
366 </p><a NAME="E5ModelMenu.rootIndex" ID="E5ModelMenu.rootIndex"></a> |
366 </p><a NAME="E5ModelMenu.rootIndex" ID="E5ModelMenu.rootIndex"></a> |
367 <h4>E5ModelMenu.rootIndex</h4> |
367 <h4>E5ModelMenu.rootIndex</h4> |
368 <b>rootIndex</b>(<i></i>) |
368 <b>rootIndex</b>(<i></i>) |
369 <p> |
369 <p> |
370 Public method to get the index of the root item. |
370 Public method to get the index of the root item. |
371 </p><dl> |
371 </p><dl> |
372 <dt>Returns:</dt> |
372 <dt>Returns:</dt> |
373 <dd> |
373 <dd> |
374 index of the root item (QModelIndex) |
374 index of the root item (QModelIndex) |
375 </dd> |
375 </dd> |
376 </dl><a NAME="E5ModelMenu.separatorRole" ID="E5ModelMenu.separatorRole"></a> |
376 </dl><a NAME="E5ModelMenu.separatorRole" ID="E5ModelMenu.separatorRole"></a> |
377 <h4>E5ModelMenu.separatorRole</h4> |
377 <h4>E5ModelMenu.separatorRole</h4> |
378 <b>separatorRole</b>(<i></i>) |
378 <b>separatorRole</b>(<i></i>) |
379 <p> |
379 <p> |
380 Public method to get the role of the separator. |
380 Public method to get the role of the separator. |
381 </p><dl> |
381 </p><dl> |
382 <dt>Returns:</dt> |
382 <dt>Returns:</dt> |
383 <dd> |
383 <dd> |
384 role of the separator (integer) |
384 role of the separator (integer) |
385 </dd> |
385 </dd> |
386 </dl><a NAME="E5ModelMenu.setFirstSeparator" ID="E5ModelMenu.setFirstSeparator"></a> |
386 </dl><a NAME="E5ModelMenu.setFirstSeparator" ID="E5ModelMenu.setFirstSeparator"></a> |
387 <h4>E5ModelMenu.setFirstSeparator</h4> |
387 <h4>E5ModelMenu.setFirstSeparator</h4> |
388 <b>setFirstSeparator</b>(<i>offset</i>) |
388 <b>setFirstSeparator</b>(<i>offset</i>) |
389 <p> |
389 <p> |
390 Public method to set the first separator. |
390 Public method to set the first separator. |
391 </p><dl> |
391 </p><dl> |
392 <dt><i>offset</i></dt> |
392 <dt><i>offset</i></dt> |
393 <dd> |
393 <dd> |
394 row number of the first separator (integer) |
394 row number of the first separator (integer) |
395 </dd> |
395 </dd> |
396 </dl><a NAME="E5ModelMenu.setMaxRows" ID="E5ModelMenu.setMaxRows"></a> |
396 </dl><a NAME="E5ModelMenu.setMaxRows" ID="E5ModelMenu.setMaxRows"></a> |
397 <h4>E5ModelMenu.setMaxRows</h4> |
397 <h4>E5ModelMenu.setMaxRows</h4> |
398 <b>setMaxRows</b>(<i>rows</i>) |
398 <b>setMaxRows</b>(<i>rows</i>) |
399 <p> |
399 <p> |
400 Public method to set the maximum number of entries to show. |
400 Public method to set the maximum number of entries to show. |
401 </p><dl> |
401 </p><dl> |
402 <dt><i>rows</i></dt> |
402 <dt><i>rows</i></dt> |
403 <dd> |
403 <dd> |
404 maximum number of entries to show (integer) |
404 maximum number of entries to show (integer) |
405 </dd> |
405 </dd> |
406 </dl><a NAME="E5ModelMenu.setModel" ID="E5ModelMenu.setModel"></a> |
406 </dl><a NAME="E5ModelMenu.setModel" ID="E5ModelMenu.setModel"></a> |
407 <h4>E5ModelMenu.setModel</h4> |
407 <h4>E5ModelMenu.setModel</h4> |
408 <b>setModel</b>(<i>model</i>) |
408 <b>setModel</b>(<i>model</i>) |
409 <p> |
409 <p> |
410 Public method to set the model for the menu. |
410 Public method to set the model for the menu. |
411 </p><dl> |
411 </p><dl> |
412 <dt><i>model</i></dt> |
412 <dt><i>model</i></dt> |
413 <dd> |
413 <dd> |
414 reference to the model (QAbstractItemModel) |
414 reference to the model (QAbstractItemModel) |
415 </dd> |
415 </dd> |
416 </dl><a NAME="E5ModelMenu.setRootIndex" ID="E5ModelMenu.setRootIndex"></a> |
416 </dl><a NAME="E5ModelMenu.setRootIndex" ID="E5ModelMenu.setRootIndex"></a> |
417 <h4>E5ModelMenu.setRootIndex</h4> |
417 <h4>E5ModelMenu.setRootIndex</h4> |
418 <b>setRootIndex</b>(<i>index</i>) |
418 <b>setRootIndex</b>(<i>index</i>) |
419 <p> |
419 <p> |
420 Public method to set the index of the root item. |
420 Public method to set the index of the root item. |
421 </p><dl> |
421 </p><dl> |
422 <dt><i>index</i></dt> |
422 <dt><i>index</i></dt> |
423 <dd> |
423 <dd> |
424 index of the root item (QModelIndex) |
424 index of the root item (QModelIndex) |
425 </dd> |
425 </dd> |
426 </dl><a NAME="E5ModelMenu.setSeparatorRole" ID="E5ModelMenu.setSeparatorRole"></a> |
426 </dl><a NAME="E5ModelMenu.setSeparatorRole" ID="E5ModelMenu.setSeparatorRole"></a> |
427 <h4>E5ModelMenu.setSeparatorRole</h4> |
427 <h4>E5ModelMenu.setSeparatorRole</h4> |
428 <b>setSeparatorRole</b>(<i>role</i>) |
428 <b>setSeparatorRole</b>(<i>role</i>) |
429 <p> |
429 <p> |
430 Public method to set the role of the separator. |
430 Public method to set the role of the separator. |
431 </p><dl> |
431 </p><dl> |
432 <dt><i>role</i></dt> |
432 <dt><i>role</i></dt> |
433 <dd> |
433 <dd> |
434 role of the separator (integer) |
434 role of the separator (integer) |
435 </dd> |
435 </dd> |
436 </dl><a NAME="E5ModelMenu.setStatusBarTextRole" ID="E5ModelMenu.setStatusBarTextRole"></a> |
436 </dl><a NAME="E5ModelMenu.setStatusBarTextRole" ID="E5ModelMenu.setStatusBarTextRole"></a> |
437 <h4>E5ModelMenu.setStatusBarTextRole</h4> |
437 <h4>E5ModelMenu.setStatusBarTextRole</h4> |
438 <b>setStatusBarTextRole</b>(<i>role</i>) |
438 <b>setStatusBarTextRole</b>(<i>role</i>) |
439 <p> |
439 <p> |
440 Public method to set the role of the status bar text. |
440 Public method to set the role of the status bar text. |
441 </p><dl> |
441 </p><dl> |
442 <dt><i>role</i></dt> |
442 <dt><i>role</i></dt> |
443 <dd> |
443 <dd> |
444 role of the status bar text (integer) |
444 role of the status bar text (integer) |
445 </dd> |
445 </dd> |
446 </dl><a NAME="E5ModelMenu.statusBarTextRole" ID="E5ModelMenu.statusBarTextRole"></a> |
446 </dl><a NAME="E5ModelMenu.statusBarTextRole" ID="E5ModelMenu.statusBarTextRole"></a> |
447 <h4>E5ModelMenu.statusBarTextRole</h4> |
447 <h4>E5ModelMenu.statusBarTextRole</h4> |
448 <b>statusBarTextRole</b>(<i></i>) |
448 <b>statusBarTextRole</b>(<i></i>) |
449 <p> |
449 <p> |
450 Public method to get the role of the status bar text. |
450 Public method to get the role of the status bar text. |
451 </p><dl> |
451 </p><dl> |
452 <dt>Returns:</dt> |
452 <dt>Returns:</dt> |
453 <dd> |
453 <dd> |
454 role of the status bar text (integer) |
454 role of the status bar text (integer) |
455 </dd> |
455 </dd> |
456 </dl> |
456 </dl> |
457 <div align="right"><a href="#top">Up</a></div> |
457 <div align="right"><a href="#top">Up</a></div> |
458 <hr /> |
458 <hr /> |
459 </body></html> |
459 </body></html> |