src/eric7/Documentation/Source/eric7.EricWidgets.EricModelMenu.html

branch
eric7
changeset 10479
856476537696
parent 10423
299802979277
equal deleted inserted replaced
10478:de9106c55c3d 10479:856476537696
5 <link rel="stylesheet" href="styles.css"> 5 <link rel="stylesheet" href="styles.css">
6 </head> 6 </head>
7 <body> 7 <body>
8 <a NAME="top" ID="top"></a> 8 <a NAME="top" ID="top"></a>
9 <h1>eric7.EricWidgets.EricModelMenu</h1> 9 <h1>eric7.EricWidgets.EricModelMenu</h1>
10
11 <p> 10 <p>
12 Module implementing a menu populated from a QAbstractItemModel. 11 Module implementing a menu populated from a QAbstractItemModel.
13 </p> 12 </p>
13
14 <h3>Global Attributes</h3> 14 <h3>Global Attributes</h3>
15
16 <table> 15 <table>
17 <tr><td>None</td></tr> 16 <tr><td>None</td></tr>
18 </table> 17 </table>
18
19 <h3>Classes</h3> 19 <h3>Classes</h3>
20
21 <table> 20 <table>
22
23 <tr> 21 <tr>
24 <td><a href="#EricModelMenu">EricModelMenu</a></td> 22 <td><a href="#EricModelMenu">EricModelMenu</a></td>
25 <td>Class implementing a menu populated from a QAbstractItemModel.</td> 23 <td>Class implementing a menu populated from a QAbstractItemModel.</td>
26 </tr> 24 </tr>
27 </table> 25 </table>
26
28 <h3>Functions</h3> 27 <h3>Functions</h3>
29
30 <table> 28 <table>
31 <tr><td>None</td></tr> 29 <tr><td>None</td></tr>
32 </table> 30 </table>
31
33 <hr /> 32 <hr />
34 <hr /> 33 <hr />
35 <a NAME="EricModelMenu" ID="EricModelMenu"></a> 34 <a NAME="EricModelMenu" ID="EricModelMenu"></a>
36 <h2>EricModelMenu</h2> 35 <h2>EricModelMenu</h2>
37
38 <p> 36 <p>
39 Class implementing a menu populated from a QAbstractItemModel. 37 Class implementing a menu populated from a QAbstractItemModel.
40 </p> 38 </p>
39
41 <h3>Signals</h3> 40 <h3>Signals</h3>
42 <dl> 41 <dl>
43 42
44 <dt>activated(QModelIndex)</dt> 43 <dt>activated(QModelIndex)</dt>
45 <dd> 44 <dd>
47 </dd> 46 </dd>
48 </dl> 47 </dl>
49 <h3>Derived from</h3> 48 <h3>Derived from</h3>
50 QMenu 49 QMenu
51 <h3>Class Attributes</h3> 50 <h3>Class Attributes</h3>
52
53 <table> 51 <table>
54 <tr><td>None</td></tr> 52 <tr><td>None</td></tr>
55 </table> 53 </table>
54
56 <h3>Class Methods</h3> 55 <h3>Class Methods</h3>
57
58 <table> 56 <table>
59 <tr><td>None</td></tr> 57 <tr><td>None</td></tr>
60 </table> 58 </table>
59
61 <h3>Methods</h3> 60 <h3>Methods</h3>
62
63 <table> 61 <table>
64
65 <tr> 62 <tr>
66 <td><a href="#EricModelMenu.__init__">EricModelMenu</a></td> 63 <td><a href="#EricModelMenu.__init__">EricModelMenu</a></td>
67 <td>Constructor</td> 64 <td>Constructor</td>
68 </tr> 65 </tr>
69 <tr> 66 <tr>
181 <tr> 178 <tr>
182 <td><a href="#EricModelMenu.statusBarTextRole">statusBarTextRole</a></td> 179 <td><a href="#EricModelMenu.statusBarTextRole">statusBarTextRole</a></td>
183 <td>Public method to get the role of the status bar text.</td> 180 <td>Public method to get the role of the status bar text.</td>
184 </tr> 181 </tr>
185 </table> 182 </table>
183
186 <h3>Static Methods</h3> 184 <h3>Static Methods</h3>
187
188 <table> 185 <table>
189 <tr><td>None</td></tr> 186 <tr><td>None</td></tr>
190 </table> 187 </table>
191 188
189
192 <a NAME="EricModelMenu.__init__" ID="EricModelMenu.__init__"></a> 190 <a NAME="EricModelMenu.__init__" ID="EricModelMenu.__init__"></a>
193 <h4>EricModelMenu (Constructor)</h4> 191 <h4>EricModelMenu (Constructor)</h4>
194 <b>EricModelMenu</b>(<i>parent=None</i>) 192 <b>EricModelMenu</b>(<i>parent=None</i>)
195
196 <p> 193 <p>
197 Constructor 194 Constructor
198 </p> 195 </p>
196
199 <dl> 197 <dl>
200 198
201 <dt><i>parent</i> (QWidget)</dt> 199 <dt><i>parent</i> (QWidget)</dt>
202 <dd> 200 <dd>
203 reference to the parent widget 201 reference to the parent widget
204 </dd> 202 </dd>
205 </dl> 203 </dl>
206 <a NAME="EricModelMenu.__aboutToShow" ID="EricModelMenu.__aboutToShow"></a> 204 <a NAME="EricModelMenu.__aboutToShow" ID="EricModelMenu.__aboutToShow"></a>
207 <h4>EricModelMenu.__aboutToShow</h4> 205 <h4>EricModelMenu.__aboutToShow</h4>
208 <b>__aboutToShow</b>(<i></i>) 206 <b>__aboutToShow</b>(<i></i>)
209
210 <p> 207 <p>
211 Private slot to show the menu. 208 Private slot to show the menu.
212 </p> 209 </p>
210
213 <a NAME="EricModelMenu.__actionTriggered" ID="EricModelMenu.__actionTriggered"></a> 211 <a NAME="EricModelMenu.__actionTriggered" ID="EricModelMenu.__actionTriggered"></a>
214 <h4>EricModelMenu.__actionTriggered</h4> 212 <h4>EricModelMenu.__actionTriggered</h4>
215 <b>__actionTriggered</b>(<i>action</i>) 213 <b>__actionTriggered</b>(<i>action</i>)
216
217 <p> 214 <p>
218 Private slot to handle the triggering of an action. 215 Private slot to handle the triggering of an action.
219 </p> 216 </p>
217
220 <dl> 218 <dl>
221 219
222 <dt><i>action</i> (QAction)</dt> 220 <dt><i>action</i> (QAction)</dt>
223 <dd> 221 <dd>
224 reference to the action that was triggered 222 reference to the action that was triggered
225 </dd> 223 </dd>
226 </dl> 224 </dl>
227 <a NAME="EricModelMenu.__makeAction" ID="EricModelMenu.__makeAction"></a> 225 <a NAME="EricModelMenu.__makeAction" ID="EricModelMenu.__makeAction"></a>
228 <h4>EricModelMenu.__makeAction</h4> 226 <h4>EricModelMenu.__makeAction</h4>
229 <b>__makeAction</b>(<i>idx</i>) 227 <b>__makeAction</b>(<i>idx</i>)
230
231 <p> 228 <p>
232 Private method to create an action. 229 Private method to create an action.
233 </p> 230 </p>
231
234 <dl> 232 <dl>
235 233
236 <dt><i>idx</i> (QModelIndex)</dt> 234 <dt><i>idx</i> (QModelIndex)</dt>
237 <dd> 235 <dd>
238 index of the item to create an action for 236 index of the item to create an action for
251 </dd> 249 </dd>
252 </dl> 250 </dl>
253 <a NAME="EricModelMenu.clear" ID="EricModelMenu.clear"></a> 251 <a NAME="EricModelMenu.clear" ID="EricModelMenu.clear"></a>
254 <h4>EricModelMenu.clear</h4> 252 <h4>EricModelMenu.clear</h4>
255 <b>clear</b>(<i></i>) 253 <b>clear</b>(<i></i>)
256
257 <p> 254 <p>
258 Public method to clear the menu. 255 Public method to clear the menu.
259 </p> 256 </p>
257
260 <a NAME="EricModelMenu.createBaseMenu" ID="EricModelMenu.createBaseMenu"></a> 258 <a NAME="EricModelMenu.createBaseMenu" ID="EricModelMenu.createBaseMenu"></a>
261 <h4>EricModelMenu.createBaseMenu</h4> 259 <h4>EricModelMenu.createBaseMenu</h4>
262 <b>createBaseMenu</b>(<i></i>) 260 <b>createBaseMenu</b>(<i></i>)
263
264 <p> 261 <p>
265 Public method to get the menu that is used to populate sub menu's. 262 Public method to get the menu that is used to populate sub menu's.
266 </p> 263 </p>
264
267 <dl> 265 <dl>
268 <dt>Return:</dt> 266 <dt>Return:</dt>
269 <dd> 267 <dd>
270 reference to the menu 268 reference to the menu
271 </dd> 269 </dd>
277 </dd> 275 </dd>
278 </dl> 276 </dl>
279 <a NAME="EricModelMenu.createMenu" ID="EricModelMenu.createMenu"></a> 277 <a NAME="EricModelMenu.createMenu" ID="EricModelMenu.createMenu"></a>
280 <h4>EricModelMenu.createMenu</h4> 278 <h4>EricModelMenu.createMenu</h4>
281 <b>createMenu</b>(<i>parent, max_, parentMenu=None, menu=None</i>) 279 <b>createMenu</b>(<i>parent, max_, parentMenu=None, menu=None</i>)
282
283 <p> 280 <p>
284 Public method to put all the children of a parent into a menu of a 281 Public method to put all the children of a parent into a menu of a
285 given length. 282 given length.
286 </p> 283 </p>
284
287 <dl> 285 <dl>
288 286
289 <dt><i>parent</i> (QModelIndex)</dt> 287 <dt><i>parent</i> (QModelIndex)</dt>
290 <dd> 288 <dd>
291 index of the parent item 289 index of the parent item
304 </dd> 302 </dd>
305 </dl> 303 </dl>
306 <a NAME="EricModelMenu.dragEnterEvent" ID="EricModelMenu.dragEnterEvent"></a> 304 <a NAME="EricModelMenu.dragEnterEvent" ID="EricModelMenu.dragEnterEvent"></a>
307 <h4>EricModelMenu.dragEnterEvent</h4> 305 <h4>EricModelMenu.dragEnterEvent</h4>
308 <b>dragEnterEvent</b>(<i>evt</i>) 306 <b>dragEnterEvent</b>(<i>evt</i>)
309
310 <p> 307 <p>
311 Protected method to handle drag enter events. 308 Protected method to handle drag enter events.
312 </p> 309 </p>
310
313 <dl> 311 <dl>
314 312
315 <dt><i>evt</i> (QDragEnterEvent)</dt> 313 <dt><i>evt</i> (QDragEnterEvent)</dt>
316 <dd> 314 <dd>
317 reference to the event 315 reference to the event
318 </dd> 316 </dd>
319 </dl> 317 </dl>
320 <a NAME="EricModelMenu.dropEvent" ID="EricModelMenu.dropEvent"></a> 318 <a NAME="EricModelMenu.dropEvent" ID="EricModelMenu.dropEvent"></a>
321 <h4>EricModelMenu.dropEvent</h4> 319 <h4>EricModelMenu.dropEvent</h4>
322 <b>dropEvent</b>(<i>evt</i>) 320 <b>dropEvent</b>(<i>evt</i>)
323
324 <p> 321 <p>
325 Protected method to handle drop events. 322 Protected method to handle drop events.
326 </p> 323 </p>
324
327 <dl> 325 <dl>
328 326
329 <dt><i>evt</i> (QDropEvent)</dt> 327 <dt><i>evt</i> (QDropEvent)</dt>
330 <dd> 328 <dd>
331 reference to the event 329 reference to the event
332 </dd> 330 </dd>
333 </dl> 331 </dl>
334 <a NAME="EricModelMenu.firstSeparator" ID="EricModelMenu.firstSeparator"></a> 332 <a NAME="EricModelMenu.firstSeparator" ID="EricModelMenu.firstSeparator"></a>
335 <h4>EricModelMenu.firstSeparator</h4> 333 <h4>EricModelMenu.firstSeparator</h4>
336 <b>firstSeparator</b>(<i></i>) 334 <b>firstSeparator</b>(<i></i>)
337
338 <p> 335 <p>
339 Public method to get the first separator. 336 Public method to get the first separator.
340 </p> 337 </p>
338
341 <dl> 339 <dl>
342 <dt>Return:</dt> 340 <dt>Return:</dt>
343 <dd> 341 <dd>
344 row number of the first separator 342 row number of the first separator
345 </dd> 343 </dd>
351 </dd> 349 </dd>
352 </dl> 350 </dl>
353 <a NAME="EricModelMenu.index" ID="EricModelMenu.index"></a> 351 <a NAME="EricModelMenu.index" ID="EricModelMenu.index"></a>
354 <h4>EricModelMenu.index</h4> 352 <h4>EricModelMenu.index</h4>
355 <b>index</b>(<i>action</i>) 353 <b>index</b>(<i>action</i>)
356
357 <p> 354 <p>
358 Public method to get the index of an action. 355 Public method to get the index of an action.
359 </p> 356 </p>
357
360 <dl> 358 <dl>
361 359
362 <dt><i>action</i> (QAction)</dt> 360 <dt><i>action</i> (QAction)</dt>
363 <dd> 361 <dd>
364 reference to the action to get the index for 362 reference to the action to get the index for
377 </dd> 375 </dd>
378 </dl> 376 </dl>
379 <a NAME="EricModelMenu.makeAction" ID="EricModelMenu.makeAction"></a> 377 <a NAME="EricModelMenu.makeAction" ID="EricModelMenu.makeAction"></a>
380 <h4>EricModelMenu.makeAction</h4> 378 <h4>EricModelMenu.makeAction</h4>
381 <b>makeAction</b>(<i>icon, text, parent</i>) 379 <b>makeAction</b>(<i>icon, text, parent</i>)
382
383 <p> 380 <p>
384 Public method to create an action. 381 Public method to create an action.
385 </p> 382 </p>
383
386 <dl> 384 <dl>
387 385
388 <dt><i>icon</i> (QIcon)</dt> 386 <dt><i>icon</i> (QIcon)</dt>
389 <dd> 387 <dd>
390 icon of the action 388 icon of the action
411 </dd> 409 </dd>
412 </dl> 410 </dl>
413 <a NAME="EricModelMenu.maxRows" ID="EricModelMenu.maxRows"></a> 411 <a NAME="EricModelMenu.maxRows" ID="EricModelMenu.maxRows"></a>
414 <h4>EricModelMenu.maxRows</h4> 412 <h4>EricModelMenu.maxRows</h4>
415 <b>maxRows</b>(<i></i>) 413 <b>maxRows</b>(<i></i>)
416
417 <p> 414 <p>
418 Public method to get the maximum number of entries to show. 415 Public method to get the maximum number of entries to show.
419 </p> 416 </p>
417
420 <dl> 418 <dl>
421 <dt>Return:</dt> 419 <dt>Return:</dt>
422 <dd> 420 <dd>
423 maximum number of entries to show 421 maximum number of entries to show
424 </dd> 422 </dd>
430 </dd> 428 </dd>
431 </dl> 429 </dl>
432 <a NAME="EricModelMenu.model" ID="EricModelMenu.model"></a> 430 <a NAME="EricModelMenu.model" ID="EricModelMenu.model"></a>
433 <h4>EricModelMenu.model</h4> 431 <h4>EricModelMenu.model</h4>
434 <b>model</b>(<i></i>) 432 <b>model</b>(<i></i>)
435
436 <p> 433 <p>
437 Public method to get a reference to the model. 434 Public method to get a reference to the model.
438 </p> 435 </p>
436
439 <dl> 437 <dl>
440 <dt>Return:</dt> 438 <dt>Return:</dt>
441 <dd> 439 <dd>
442 reference to the model 440 reference to the model
443 </dd> 441 </dd>
449 </dd> 447 </dd>
450 </dl> 448 </dl>
451 <a NAME="EricModelMenu.mouseMoveEvent" ID="EricModelMenu.mouseMoveEvent"></a> 449 <a NAME="EricModelMenu.mouseMoveEvent" ID="EricModelMenu.mouseMoveEvent"></a>
452 <h4>EricModelMenu.mouseMoveEvent</h4> 450 <h4>EricModelMenu.mouseMoveEvent</h4>
453 <b>mouseMoveEvent</b>(<i>evt</i>) 451 <b>mouseMoveEvent</b>(<i>evt</i>)
454
455 <p> 452 <p>
456 Protected method to handle mouse move events. 453 Protected method to handle mouse move events.
457 </p> 454 </p>
455
458 <dl> 456 <dl>
459 457
460 <dt><i>evt</i> (QMouseEvent)</dt> 458 <dt><i>evt</i> (QMouseEvent)</dt>
461 <dd> 459 <dd>
462 reference to the event 460 reference to the event
463 </dd> 461 </dd>
464 </dl> 462 </dl>
465 <a NAME="EricModelMenu.mousePressEvent" ID="EricModelMenu.mousePressEvent"></a> 463 <a NAME="EricModelMenu.mousePressEvent" ID="EricModelMenu.mousePressEvent"></a>
466 <h4>EricModelMenu.mousePressEvent</h4> 464 <h4>EricModelMenu.mousePressEvent</h4>
467 <b>mousePressEvent</b>(<i>evt</i>) 465 <b>mousePressEvent</b>(<i>evt</i>)
468
469 <p> 466 <p>
470 Protected method handling mouse press events. 467 Protected method handling mouse press events.
471 </p> 468 </p>
469
472 <dl> 470 <dl>
473 471
474 <dt><i>evt</i> (QMouseEvent)</dt> 472 <dt><i>evt</i> (QMouseEvent)</dt>
475 <dd> 473 <dd>
476 reference to the event object 474 reference to the event object
477 </dd> 475 </dd>
478 </dl> 476 </dl>
479 <a NAME="EricModelMenu.mouseReleaseEvent" ID="EricModelMenu.mouseReleaseEvent"></a> 477 <a NAME="EricModelMenu.mouseReleaseEvent" ID="EricModelMenu.mouseReleaseEvent"></a>
480 <h4>EricModelMenu.mouseReleaseEvent</h4> 478 <h4>EricModelMenu.mouseReleaseEvent</h4>
481 <b>mouseReleaseEvent</b>(<i>evt</i>) 479 <b>mouseReleaseEvent</b>(<i>evt</i>)
482
483 <p> 480 <p>
484 Protected method handling mouse release events. 481 Protected method handling mouse release events.
485 </p> 482 </p>
483
486 <dl> 484 <dl>
487 485
488 <dt><i>evt</i> (QMouseEvent)</dt> 486 <dt><i>evt</i> (QMouseEvent)</dt>
489 <dd> 487 <dd>
490 reference to the event object 488 reference to the event object
491 </dd> 489 </dd>
492 </dl> 490 </dl>
493 <a NAME="EricModelMenu.postPopulated" ID="EricModelMenu.postPopulated"></a> 491 <a NAME="EricModelMenu.postPopulated" ID="EricModelMenu.postPopulated"></a>
494 <h4>EricModelMenu.postPopulated</h4> 492 <h4>EricModelMenu.postPopulated</h4>
495 <b>postPopulated</b>(<i></i>) 493 <b>postPopulated</b>(<i></i>)
496
497 <p> 494 <p>
498 Public method to add any actions after the tree. 495 Public method to add any actions after the tree.
499 </p> 496 </p>
497
500 <a NAME="EricModelMenu.prePopulated" ID="EricModelMenu.prePopulated"></a> 498 <a NAME="EricModelMenu.prePopulated" ID="EricModelMenu.prePopulated"></a>
501 <h4>EricModelMenu.prePopulated</h4> 499 <h4>EricModelMenu.prePopulated</h4>
502 <b>prePopulated</b>(<i></i>) 500 <b>prePopulated</b>(<i></i>)
503
504 <p> 501 <p>
505 Public method to add any actions before the tree. 502 Public method to add any actions before the tree.
506 </p> 503 </p>
504
507 <dl> 505 <dl>
508 <dt>Return:</dt> 506 <dt>Return:</dt>
509 <dd> 507 <dd>
510 flag indicating if any actions were added 508 flag indicating if any actions were added
511 </dd> 509 </dd>
517 </dd> 515 </dd>
518 </dl> 516 </dl>
519 <a NAME="EricModelMenu.removeEntry" ID="EricModelMenu.removeEntry"></a> 517 <a NAME="EricModelMenu.removeEntry" ID="EricModelMenu.removeEntry"></a>
520 <h4>EricModelMenu.removeEntry</h4> 518 <h4>EricModelMenu.removeEntry</h4>
521 <b>removeEntry</b>(<i>idx</i>) 519 <b>removeEntry</b>(<i>idx</i>)
522
523 <p> 520 <p>
524 Public method to remove a menu entry. 521 Public method to remove a menu entry.
525 </p> 522 </p>
523
526 <dl> 524 <dl>
527 525
528 <dt><i>idx</i> (QModelIndex)</dt> 526 <dt><i>idx</i> (QModelIndex)</dt>
529 <dd> 527 <dd>
530 index of the entry to be removed 528 index of the entry to be removed
531 </dd> 529 </dd>
532 </dl> 530 </dl>
533 <a NAME="EricModelMenu.resetFlags" ID="EricModelMenu.resetFlags"></a> 531 <a NAME="EricModelMenu.resetFlags" ID="EricModelMenu.resetFlags"></a>
534 <h4>EricModelMenu.resetFlags</h4> 532 <h4>EricModelMenu.resetFlags</h4>
535 <b>resetFlags</b>(<i></i>) 533 <b>resetFlags</b>(<i></i>)
536
537 <p> 534 <p>
538 Public method to reset the saved internal state. 535 Public method to reset the saved internal state.
539 </p> 536 </p>
537
540 <a NAME="EricModelMenu.rootIndex" ID="EricModelMenu.rootIndex"></a> 538 <a NAME="EricModelMenu.rootIndex" ID="EricModelMenu.rootIndex"></a>
541 <h4>EricModelMenu.rootIndex</h4> 539 <h4>EricModelMenu.rootIndex</h4>
542 <b>rootIndex</b>(<i></i>) 540 <b>rootIndex</b>(<i></i>)
543
544 <p> 541 <p>
545 Public method to get the index of the root item. 542 Public method to get the index of the root item.
546 </p> 543 </p>
544
547 <dl> 545 <dl>
548 <dt>Return:</dt> 546 <dt>Return:</dt>
549 <dd> 547 <dd>
550 index of the root item 548 index of the root item
551 </dd> 549 </dd>
557 </dd> 555 </dd>
558 </dl> 556 </dl>
559 <a NAME="EricModelMenu.separatorRole" ID="EricModelMenu.separatorRole"></a> 557 <a NAME="EricModelMenu.separatorRole" ID="EricModelMenu.separatorRole"></a>
560 <h4>EricModelMenu.separatorRole</h4> 558 <h4>EricModelMenu.separatorRole</h4>
561 <b>separatorRole</b>(<i></i>) 559 <b>separatorRole</b>(<i></i>)
562
563 <p> 560 <p>
564 Public method to get the role of the separator. 561 Public method to get the role of the separator.
565 </p> 562 </p>
563
566 <dl> 564 <dl>
567 <dt>Return:</dt> 565 <dt>Return:</dt>
568 <dd> 566 <dd>
569 role of the separator 567 role of the separator
570 </dd> 568 </dd>
576 </dd> 574 </dd>
577 </dl> 575 </dl>
578 <a NAME="EricModelMenu.setFirstSeparator" ID="EricModelMenu.setFirstSeparator"></a> 576 <a NAME="EricModelMenu.setFirstSeparator" ID="EricModelMenu.setFirstSeparator"></a>
579 <h4>EricModelMenu.setFirstSeparator</h4> 577 <h4>EricModelMenu.setFirstSeparator</h4>
580 <b>setFirstSeparator</b>(<i>offset</i>) 578 <b>setFirstSeparator</b>(<i>offset</i>)
581
582 <p> 579 <p>
583 Public method to set the first separator. 580 Public method to set the first separator.
584 </p> 581 </p>
582
585 <dl> 583 <dl>
586 584
587 <dt><i>offset</i> (int)</dt> 585 <dt><i>offset</i> (int)</dt>
588 <dd> 586 <dd>
589 row number of the first separator 587 row number of the first separator
590 </dd> 588 </dd>
591 </dl> 589 </dl>
592 <a NAME="EricModelMenu.setMaxRows" ID="EricModelMenu.setMaxRows"></a> 590 <a NAME="EricModelMenu.setMaxRows" ID="EricModelMenu.setMaxRows"></a>
593 <h4>EricModelMenu.setMaxRows</h4> 591 <h4>EricModelMenu.setMaxRows</h4>
594 <b>setMaxRows</b>(<i>rows</i>) 592 <b>setMaxRows</b>(<i>rows</i>)
595
596 <p> 593 <p>
597 Public method to set the maximum number of entries to show. 594 Public method to set the maximum number of entries to show.
598 </p> 595 </p>
596
599 <dl> 597 <dl>
600 598
601 <dt><i>rows</i> (int)</dt> 599 <dt><i>rows</i> (int)</dt>
602 <dd> 600 <dd>
603 maximum number of entries to show 601 maximum number of entries to show
604 </dd> 602 </dd>
605 </dl> 603 </dl>
606 <a NAME="EricModelMenu.setModel" ID="EricModelMenu.setModel"></a> 604 <a NAME="EricModelMenu.setModel" ID="EricModelMenu.setModel"></a>
607 <h4>EricModelMenu.setModel</h4> 605 <h4>EricModelMenu.setModel</h4>
608 <b>setModel</b>(<i>model</i>) 606 <b>setModel</b>(<i>model</i>)
609
610 <p> 607 <p>
611 Public method to set the model for the menu. 608 Public method to set the model for the menu.
612 </p> 609 </p>
610
613 <dl> 611 <dl>
614 612
615 <dt><i>model</i> (QAbstractItemModel)</dt> 613 <dt><i>model</i> (QAbstractItemModel)</dt>
616 <dd> 614 <dd>
617 reference to the model 615 reference to the model
618 </dd> 616 </dd>
619 </dl> 617 </dl>
620 <a NAME="EricModelMenu.setRootIndex" ID="EricModelMenu.setRootIndex"></a> 618 <a NAME="EricModelMenu.setRootIndex" ID="EricModelMenu.setRootIndex"></a>
621 <h4>EricModelMenu.setRootIndex</h4> 619 <h4>EricModelMenu.setRootIndex</h4>
622 <b>setRootIndex</b>(<i>index</i>) 620 <b>setRootIndex</b>(<i>index</i>)
623
624 <p> 621 <p>
625 Public method to set the index of the root item. 622 Public method to set the index of the root item.
626 </p> 623 </p>
624
627 <dl> 625 <dl>
628 626
629 <dt><i>index</i> (QModelIndex)</dt> 627 <dt><i>index</i> (QModelIndex)</dt>
630 <dd> 628 <dd>
631 index of the root item 629 index of the root item
632 </dd> 630 </dd>
633 </dl> 631 </dl>
634 <a NAME="EricModelMenu.setSeparatorRole" ID="EricModelMenu.setSeparatorRole"></a> 632 <a NAME="EricModelMenu.setSeparatorRole" ID="EricModelMenu.setSeparatorRole"></a>
635 <h4>EricModelMenu.setSeparatorRole</h4> 633 <h4>EricModelMenu.setSeparatorRole</h4>
636 <b>setSeparatorRole</b>(<i>role</i>) 634 <b>setSeparatorRole</b>(<i>role</i>)
637
638 <p> 635 <p>
639 Public method to set the role of the separator. 636 Public method to set the role of the separator.
640 </p> 637 </p>
638
641 <dl> 639 <dl>
642 640
643 <dt><i>role</i> (int)</dt> 641 <dt><i>role</i> (int)</dt>
644 <dd> 642 <dd>
645 role of the separator 643 role of the separator
646 </dd> 644 </dd>
647 </dl> 645 </dl>
648 <a NAME="EricModelMenu.setStatusBarTextRole" ID="EricModelMenu.setStatusBarTextRole"></a> 646 <a NAME="EricModelMenu.setStatusBarTextRole" ID="EricModelMenu.setStatusBarTextRole"></a>
649 <h4>EricModelMenu.setStatusBarTextRole</h4> 647 <h4>EricModelMenu.setStatusBarTextRole</h4>
650 <b>setStatusBarTextRole</b>(<i>role</i>) 648 <b>setStatusBarTextRole</b>(<i>role</i>)
651
652 <p> 649 <p>
653 Public method to set the role of the status bar text. 650 Public method to set the role of the status bar text.
654 </p> 651 </p>
652
655 <dl> 653 <dl>
656 654
657 <dt><i>role</i> (int)</dt> 655 <dt><i>role</i> (int)</dt>
658 <dd> 656 <dd>
659 role of the status bar text 657 role of the status bar text
660 </dd> 658 </dd>
661 </dl> 659 </dl>
662 <a NAME="EricModelMenu.statusBarTextRole" ID="EricModelMenu.statusBarTextRole"></a> 660 <a NAME="EricModelMenu.statusBarTextRole" ID="EricModelMenu.statusBarTextRole"></a>
663 <h4>EricModelMenu.statusBarTextRole</h4> 661 <h4>EricModelMenu.statusBarTextRole</h4>
664 <b>statusBarTextRole</b>(<i></i>) 662 <b>statusBarTextRole</b>(<i></i>)
665
666 <p> 663 <p>
667 Public method to get the role of the status bar text. 664 Public method to get the role of the status bar text.
668 </p> 665 </p>
666
669 <dl> 667 <dl>
670 <dt>Return:</dt> 668 <dt>Return:</dt>
671 <dd> 669 <dd>
672 role of the status bar text 670 role of the status bar text
673 </dd> 671 </dd>

eric ide

mercurial