Documentation/Source/eric5.E5Gui.E5ModelMenu.html

changeset 58
37f0444c3479
parent 55
b5c84934de9c
child 409
0ea528e80202
equal deleted inserted replaced
57:81326a94fdca 58:37f0444c3479
20 </style> 20 </style>
21 </head> 21 </head>
22 <body><a NAME="top" ID="top"></a> 22 <body><a NAME="top" ID="top"></a>
23 <h1>eric5.E5Gui.E5ModelMenu</h1> 23 <h1>eric5.E5Gui.E5ModelMenu</h1>
24 <p> 24 <p>
25 &#77;&#111;&#100;&#117;&#108;&#101; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#97; &#109;&#101;&#110;&#117; &#112;&#111;&#112;&#117;&#108;&#97;&#116;&#101;&#100; &#102;&#114;&#111;&#109; &#97; &#81;&#65;&#98;&#115;&#116;&#114;&#97;&#99;&#116;&#73;&#116;&#101;&#109;&#77;&#111;&#100;&#101;&#108;. 25 Module implementing a menu populated from a QAbstractItemModel.
26 </p> 26 </p>
27 <h3>Global Attributes</h3> 27 <h3>Global Attributes</h3>
28 <table> 28 <table>
29 <tr><td>None</td></tr> 29 <tr><td>None</td></tr>
30 </table> 30 </table>
31 <h3>Classes</h3> 31 <h3>Classes</h3>
32 <table> 32 <table>
33 <tr> 33 <tr>
34 <td><a href="#E5ModelMenu">E5ModelMenu</a></td> 34 <td><a href="#E5ModelMenu">E5ModelMenu</a></td>
35 <td>&#67;&#108;&#97;&#115;&#115; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#97; &#109;&#101;&#110;&#117; &#112;&#111;&#112;&#117;&#108;&#97;&#116;&#101;&#100; &#102;&#114;&#111;&#109; &#97; &#81;&#65;&#98;&#115;&#116;&#114;&#97;&#99;&#116;&#73;&#116;&#101;&#109;&#77;&#111;&#100;&#101;&#108;.</td> 35 <td>Class implementing a menu populated from a QAbstractItemModel.</td>
36 </tr> 36 </tr>
37 </table> 37 </table>
38 <h3>Functions</h3> 38 <h3>Functions</h3>
39 <table> 39 <table>
40 <tr><td>None</td></tr> 40 <tr><td>None</td></tr>
41 </table> 41 </table>
42 <hr /><hr /> 42 <hr /><hr />
43 <a NAME="E5ModelMenu" ID="E5ModelMenu"></a> 43 <a NAME="E5ModelMenu" ID="E5ModelMenu"></a>
44 <h2>E5ModelMenu</h2> 44 <h2>E5ModelMenu</h2>
45 <p> 45 <p>
46 &#67;&#108;&#97;&#115;&#115; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#97; &#109;&#101;&#110;&#117; &#112;&#111;&#112;&#117;&#108;&#97;&#116;&#101;&#100; &#102;&#114;&#111;&#109; &#97; &#81;&#65;&#98;&#115;&#116;&#114;&#97;&#99;&#116;&#73;&#116;&#101;&#109;&#77;&#111;&#100;&#101;&#108;. 46 Class implementing a menu populated from a QAbstractItemModel.
47 </p><h4>Signals</h4> 47 </p><h4>Signals</h4>
48 <dl> 48 <dl>
49 <dt>activated(const QModelIndex&)</dt> 49 <dt>activated(const QModelIndex&)</dt>
50 <dd> 50 <dd>
51 &#101;&#109;&#105;&#116;&#116;&#101;&#100; w&#104;&#101;&#110; &#97;&#110; &#97;&#99;&#116;&#105;&#111;&#110; &#104;&#97;&#115; &#98;&#101;&#101;&#110; &#116;&#114;&#105;&#103;&#103;&#101;&#114;&#101;&#100; 51 emitted when an action has been triggered
52 </dd> 52 </dd>
53 </dl> 53 </dl>
54 <h3>Derived from</h3> 54 <h3>Derived from</h3>
55 QMenu 55 QMenu
56 <h3>Class Attributes</h3> 56 <h3>Class Attributes</h3>
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>&#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114;</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>&#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#115;&#104;&#111;w &#116;&#104;&#101; &#109;&#101;&#110;&#117;.</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>&#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#116;&#104;&#101; &#116;&#114;&#105;&#103;&#103;&#101;&#114;&#105;&#110;&#103; &#111;&#102; &#97;&#110; &#97;&#99;&#116;&#105;&#111;&#110;.</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>&#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#99;&#114;&#101;&#97;&#116;&#101; &#97;&#110; &#97;&#99;&#116;&#105;&#111;&#110;.</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>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#103;&#101;&#116; &#116;&#104;&#101; &#109;&#101;&#110;&#117; &#116;&#104;&#97;&#116; &#105;&#115; &#117;&#115;&#101;&#100; &#116;&#111; &#112;&#111;&#112;&#117;&#108;&#97;&#116;&#101; &#115;&#117;&#98; &#109;&#101;&#110;&#117;'&#115;.</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>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#112;&#117;&#116; &#97;&#108;&#108; &#116;&#104;&#101; &#99;&#104;&#105;&#108;&#100;&#114;&#101;&#110; &#111;&#102; &#97; &#112;&#97;&#114;&#101;&#110;&#116; &#105;&#110;&#116;&#111; &#97; &#109;&#101;&#110;&#117; &#111;&#102; &#97; &#103;&#105;v&#101;&#110; &#108;&#101;&#110;&#103;&#116;&#104;.</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>&#80;&#114;&#111;&#116;&#101;&#99;&#116;&#101;&#100; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#100;&#114;&#97;&#103; &#101;&#110;&#116;&#101;&#114; &#101;v&#101;&#110;&#116;&#115;.</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>&#80;&#114;&#111;&#116;&#101;&#99;&#116;&#101;&#100; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#100;&#114;&#111;&#112; &#101;v&#101;&#110;&#116;&#115;.</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>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#103;&#101;&#116; &#116;&#104;&#101; &#102;&#105;&#114;&#115;&#116; &#115;&#101;&#112;&#97;&#114;&#97;&#116;&#111;&#114;.</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>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#103;&#101;&#116; &#116;&#104;&#101; &#105;&#110;&#100;&#101;x &#111;&#102; &#97;&#110; &#97;&#99;&#116;&#105;&#111;&#110;.</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>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#99;&#114;&#101;&#97;&#116;&#101; &#97;&#110; &#97;&#99;&#116;&#105;&#111;&#110;.</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>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#103;&#101;&#116; &#116;&#104;&#101; &#109;&#97;x&#105;&#109;&#117;&#109; &#110;&#117;&#109;&#98;&#101;&#114; &#111;&#102; &#101;&#110;&#116;&#114;&#105;&#101;&#115; &#116;&#111; &#115;&#104;&#111;w.</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>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#103;&#101;&#116; &#97; &#114;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#109;&#111;&#100;&#101;&#108;.</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>&#80;&#114;&#111;&#116;&#101;&#99;&#116;&#101;&#100; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#109;&#111;&#117;&#115;&#101; &#109;&#111;v&#101; &#101;v&#101;&#110;&#116;&#115;.</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>&#80;&#114;&#111;&#116;&#101;&#99;&#116;&#101;&#100; &#109;&#101;&#116;&#104;&#111;&#100; &#104;&#97;&#110;&#100;&#108;&#105;&#110;&#103; &#109;&#111;&#117;&#115;&#101; &#112;&#114;&#101;&#115;&#115; &#101;v&#101;&#110;&#116;&#115;.</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>&#80;&#114;&#111;&#116;&#101;&#99;&#116;&#101;&#100; &#109;&#101;&#116;&#104;&#111;&#100; &#104;&#97;&#110;&#100;&#108;&#105;&#110;&#103; &#109;&#111;&#117;&#115;&#101; &#114;&#101;&#108;&#101;&#97;&#115;&#101; &#101;v&#101;&#110;&#116;&#115;.</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>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#97;&#100;&#100; &#97;&#110;y &#97;&#99;&#116;&#105;&#111;&#110;&#115; &#97;&#102;&#116;&#101;&#114; &#116;&#104;&#101; &#116;&#114;&#101;&#101;.</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>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#97;&#100;&#100; &#97;&#110;y &#97;&#99;&#116;&#105;&#111;&#110;&#115; &#98;&#101;&#102;&#111;&#114;&#101; &#116;&#104;&#101; &#116;&#114;&#101;&#101;.</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>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#114;&#101;&#109;&#111;v&#101; &#97; &#109;&#101;&#110;&#117; &#101;&#110;&#116;&#114;y.</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>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#114;&#101;&#115;&#101;&#116; &#116;&#104;&#101; &#115;&#97;v&#101;&#100; &#105;&#110;&#116;&#101;&#114;&#110;&#97;&#108; &#115;&#116;&#97;&#116;&#101;.</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>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#103;&#101;&#116; &#116;&#104;&#101; &#105;&#110;&#100;&#101;x &#111;&#102; &#116;&#104;&#101; &#114;&#111;&#111;&#116; &#105;&#116;&#101;&#109;.</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>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#103;&#101;&#116; &#116;&#104;&#101; &#114;&#111;&#108;&#101; &#111;&#102; &#116;&#104;&#101; &#115;&#101;&#112;&#97;&#114;&#97;&#116;&#111;&#114;.</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>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#115;&#101;&#116; &#116;&#104;&#101; &#102;&#105;&#114;&#115;&#116; &#115;&#101;&#112;&#97;&#114;&#97;&#116;&#111;&#114;.</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>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#115;&#101;&#116; &#116;&#104;&#101; &#109;&#97;x&#105;&#109;&#117;&#109; &#110;&#117;&#109;&#98;&#101;&#114; &#111;&#102; &#101;&#110;&#116;&#114;&#105;&#101;&#115; &#116;&#111; &#115;&#104;&#111;w.</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>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#115;&#101;&#116; &#116;&#104;&#101; &#109;&#111;&#100;&#101;&#108; &#102;&#111;&#114; &#116;&#104;&#101; &#109;&#101;&#110;&#117;.</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>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#115;&#101;&#116; &#116;&#104;&#101; &#105;&#110;&#100;&#101;x &#111;&#102; &#116;&#104;&#101; &#114;&#111;&#111;&#116; &#105;&#116;&#101;&#109;.</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>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#115;&#101;&#116; &#116;&#104;&#101; &#114;&#111;&#108;&#101; &#111;&#102; &#116;&#104;&#101; &#115;&#101;&#112;&#97;&#114;&#97;&#116;&#111;&#114;.</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>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#115;&#101;&#116; &#116;&#104;&#101; &#114;&#111;&#108;&#101; &#111;&#102; &#116;&#104;&#101; &#115;&#116;&#97;&#116;&#117;&#115; &#98;&#97;&#114; &#116;&#101;x&#116;.</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>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#103;&#101;&#116; &#116;&#104;&#101; &#114;&#111;&#108;&#101; &#111;&#102; &#116;&#104;&#101; &#115;&#116;&#97;&#116;&#117;&#115; &#98;&#97;&#114; &#116;&#101;x&#116;.</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 &#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114; 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 &#114;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#112;&#97;&#114;&#101;&#110;&#116; w&#105;&#100;&#103;&#101;&#116; (&#81;&#87;&#105;&#100;&#103;&#101;&#116;) 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 &#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#115;&#104;&#111;w &#116;&#104;&#101; &#109;&#101;&#110;&#117;. 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 &#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#116;&#104;&#101; &#116;&#114;&#105;&#103;&#103;&#101;&#114;&#105;&#110;&#103; &#111;&#102; &#97;&#110; &#97;&#99;&#116;&#105;&#111;&#110;. 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 &#114;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#97;&#99;&#116;&#105;&#111;&#110; &#116;&#104;&#97;&#116; w&#97;&#115; &#116;&#114;&#105;&#103;&#103;&#101;&#114;&#101;&#100; (&#81;&#65;&#99;&#116;&#105;&#111;&#110;) 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 &#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#99;&#114;&#101;&#97;&#116;&#101; &#97;&#110; &#97;&#99;&#116;&#105;&#111;&#110;. 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 &#105;&#110;&#100;&#101;x &#111;&#102; &#116;&#104;&#101; &#105;&#116;&#101;&#109; &#116;&#111; &#99;&#114;&#101;&#97;&#116;&#101; &#97;&#110; &#97;&#99;&#116;&#105;&#111;&#110; &#102;&#111;&#114; (&#81;&#77;&#111;&#100;&#101;&#108;&#73;&#110;&#100;&#101;x) 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 &#114;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#99;&#114;&#101;&#97;&#116;&#101;&#100; &#97;&#99;&#116;&#105;&#111;&#110; (&#81;&#65;&#99;&#116;&#105;&#111;&#110;) 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 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#103;&#101;&#116; &#116;&#104;&#101; &#109;&#101;&#110;&#117; &#116;&#104;&#97;&#116; &#105;&#115; &#117;&#115;&#101;&#100; &#116;&#111; &#112;&#111;&#112;&#117;&#108;&#97;&#116;&#101; &#115;&#117;&#98; &#109;&#101;&#110;&#117;'&#115;. 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 &#114;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#109;&#101;&#110;&#117; (&#69;&#53;&#77;&#111;&#100;&#101;&#108;&#77;&#101;&#110;&#117;) 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 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#112;&#117;&#116; &#97;&#108;&#108; &#116;&#104;&#101; &#99;&#104;&#105;&#108;&#100;&#114;&#101;&#110; &#111;&#102; &#97; &#112;&#97;&#114;&#101;&#110;&#116; &#105;&#110;&#116;&#111; &#97; &#109;&#101;&#110;&#117; &#111;&#102; &#97; &#103;&#105;v&#101;&#110; &#108;&#101;&#110;&#103;&#116;&#104;. 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 &#105;&#110;&#100;&#101;x &#111;&#102; &#116;&#104;&#101; &#112;&#97;&#114;&#101;&#110;&#116; &#105;&#116;&#101;&#109; (&#81;&#77;&#111;&#100;&#101;&#108;&#73;&#110;&#100;&#101;x) 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 &#109;&#97;x&#105;&#109;&#117;&#109; &#110;&#117;&#109;&#98;&#101;&#114; &#111;&#102; &#101;&#110;&#116;&#114;&#105;&#101;&#115; (&#105;&#110;&#116;&#101;&#103;&#101;&#114;) 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 &#114;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#112;&#97;&#114;&#101;&#110;&#116; &#109;&#101;&#110;&#117; (&#81;&#77;&#101;&#110;&#117;) 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 &#114;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#109;&#101;&#110;&#117; &#116;&#111; &#98;&#101; &#112;&#111;&#112;&#117;&#108;&#97;&#116;&#101;&#100; (&#81;&#77;&#101;&#110;&#117;) 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 &#80;&#114;&#111;&#116;&#101;&#99;&#116;&#101;&#100; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#100;&#114;&#97;&#103; &#101;&#110;&#116;&#101;&#114; &#101;v&#101;&#110;&#116;&#115;. 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 &#114;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#101;v&#101;&#110;&#116; (&#81;&#68;&#114;&#97;&#103;&#69;&#110;&#116;&#101;&#114;&#69;v&#101;&#110;&#116;) 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 &#80;&#114;&#111;&#116;&#101;&#99;&#116;&#101;&#100; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#100;&#114;&#111;&#112; &#101;v&#101;&#110;&#116;&#115;. 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 &#114;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#101;v&#101;&#110;&#116; (&#81;&#68;&#114;&#111;&#112;&#69;v&#101;&#110;&#116;) 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 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#103;&#101;&#116; &#116;&#104;&#101; &#102;&#105;&#114;&#115;&#116; &#115;&#101;&#112;&#97;&#114;&#97;&#116;&#111;&#114;. 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 &#114;&#111;w &#110;&#117;&#109;&#98;&#101;&#114; &#111;&#102; &#116;&#104;&#101; &#102;&#105;&#114;&#115;&#116; &#115;&#101;&#112;&#97;&#114;&#97;&#116;&#111;&#114; (&#105;&#110;&#116;&#101;&#103;&#101;&#114;) 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 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#103;&#101;&#116; &#116;&#104;&#101; &#105;&#110;&#100;&#101;x &#111;&#102; &#97;&#110; &#97;&#99;&#116;&#105;&#111;&#110;. 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 &#114;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#97;&#99;&#116;&#105;&#111;&#110; &#116;&#111; &#103;&#101;&#116; &#116;&#104;&#101; &#105;&#110;&#100;&#101;x &#102;&#111;&#114; (&#81;&#65;&#99;&#116;&#105;&#111;&#110;) 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 &#105;&#110;&#100;&#101;x &#111;&#102; &#116;&#104;&#101; &#97;&#99;&#116;&#105;&#111;&#110; (&#81;&#77;&#111;&#100;&#101;&#108;&#73;&#110;&#100;&#101;x) 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 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#99;&#114;&#101;&#97;&#116;&#101; &#97;&#110; &#97;&#99;&#116;&#105;&#111;&#110;. 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 &#105;&#99;&#111;&#110; &#111;&#102; &#116;&#104;&#101; &#97;&#99;&#116;&#105;&#111;&#110; (&#81;&#73;&#99;&#111;&#110;) 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 &#116;&#101;x&#116; &#111;&#102; &#116;&#104;&#101; &#97;&#99;&#116;&#105;&#111;&#110; (&#115;&#116;&#114;&#105;&#110;&#103;) 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 &#116;&#111; &#116;&#104;&#101; &#112;&#97;&#114;&#101;&#110;&#116; &#111;&#98;&#106;&#101;&#99;&#116; (&#81;&#79;&#98;&#106;&#101;&#99;&#116;) 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 &#114;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#99;&#114;&#101;&#97;&#116;&#101;&#100; &#97;&#99;&#116;&#105;&#111;&#110; (&#81;&#65;&#99;&#116;&#105;&#111;&#110;) 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 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#103;&#101;&#116; &#116;&#104;&#101; &#109;&#97;x&#105;&#109;&#117;&#109; &#110;&#117;&#109;&#98;&#101;&#114; &#111;&#102; &#101;&#110;&#116;&#114;&#105;&#101;&#115; &#116;&#111; &#115;&#104;&#111;w. 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 &#109;&#97;x&#105;&#109;&#117;&#109; &#110;&#117;&#109;&#98;&#101;&#114; &#111;&#102; &#101;&#110;&#116;&#114;&#105;&#101;&#115; &#116;&#111; &#115;&#104;&#111;w (&#105;&#110;&#116;&#101;&#103;&#101;&#114;) 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 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#103;&#101;&#116; &#97; &#114;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#109;&#111;&#100;&#101;&#108;. 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 &#114;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#109;&#111;&#100;&#101;&#108; (&#81;&#65;&#98;&#115;&#116;&#114;&#97;&#99;&#116;&#73;&#116;&#101;&#109;&#77;&#111;&#100;&#101;&#108;) 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 &#80;&#114;&#111;&#116;&#101;&#99;&#116;&#101;&#100; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#109;&#111;&#117;&#115;&#101; &#109;&#111;v&#101; &#101;v&#101;&#110;&#116;&#115;. 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 &#114;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#101;v&#101;&#110;&#116; (&#81;&#77;&#111;&#117;&#115;&#101;&#69;v&#101;&#110;&#116;) 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 &#80;&#114;&#111;&#116;&#101;&#99;&#116;&#101;&#100; &#109;&#101;&#116;&#104;&#111;&#100; &#104;&#97;&#110;&#100;&#108;&#105;&#110;&#103; &#109;&#111;&#117;&#115;&#101; &#112;&#114;&#101;&#115;&#115; &#101;v&#101;&#110;&#116;&#115;. 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 &#114;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#101;v&#101;&#110;&#116; &#111;&#98;&#106;&#101;&#99;&#116; (&#81;&#77;&#111;&#117;&#115;&#101;&#69;v&#101;&#110;&#116;) 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 &#80;&#114;&#111;&#116;&#101;&#99;&#116;&#101;&#100; &#109;&#101;&#116;&#104;&#111;&#100; &#104;&#97;&#110;&#100;&#108;&#105;&#110;&#103; &#109;&#111;&#117;&#115;&#101; &#114;&#101;&#108;&#101;&#97;&#115;&#101; &#101;v&#101;&#110;&#116;&#115;. 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 &#114;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#101;v&#101;&#110;&#116; &#111;&#98;&#106;&#101;&#99;&#116; (&#81;&#77;&#111;&#117;&#115;&#101;&#69;v&#101;&#110;&#116;) 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 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#97;&#100;&#100; &#97;&#110;y &#97;&#99;&#116;&#105;&#111;&#110;&#115; &#97;&#102;&#116;&#101;&#114; &#116;&#104;&#101; &#116;&#114;&#101;&#101;. 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 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#97;&#100;&#100; &#97;&#110;y &#97;&#99;&#116;&#105;&#111;&#110;&#115; &#98;&#101;&#102;&#111;&#114;&#101; &#116;&#104;&#101; &#116;&#114;&#101;&#101;. 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 &#102;&#108;&#97;&#103; &#105;&#110;&#100;&#105;&#99;&#97;&#116;&#105;&#110;&#103; &#105;&#102; &#97;&#110;y &#97;&#99;&#116;&#105;&#111;&#110;&#115; w&#101;&#114;&#101; &#97;&#100;&#100;&#101;&#100; 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 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#114;&#101;&#109;&#111;v&#101; &#97; &#109;&#101;&#110;&#117; &#101;&#110;&#116;&#114;y. 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 &#105;&#110;&#100;&#101;x &#111;&#102; &#116;&#104;&#101; &#101;&#110;&#116;&#114;y &#116;&#111; &#98;&#101; &#114;&#101;&#109;&#111;v&#101;&#100; (&#81;&#77;&#111;&#100;&#101;&#108;&#73;&#110;&#100;&#101;x) 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 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#114;&#101;&#115;&#101;&#116; &#116;&#104;&#101; &#115;&#97;v&#101;&#100; &#105;&#110;&#116;&#101;&#114;&#110;&#97;&#108; &#115;&#116;&#97;&#116;&#101;. 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 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#103;&#101;&#116; &#116;&#104;&#101; &#105;&#110;&#100;&#101;x &#111;&#102; &#116;&#104;&#101; &#114;&#111;&#111;&#116; &#105;&#116;&#101;&#109;. 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 &#105;&#110;&#100;&#101;x &#111;&#102; &#116;&#104;&#101; &#114;&#111;&#111;&#116; &#105;&#116;&#101;&#109; (&#81;&#77;&#111;&#100;&#101;&#108;&#73;&#110;&#100;&#101;x) 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 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#103;&#101;&#116; &#116;&#104;&#101; &#114;&#111;&#108;&#101; &#111;&#102; &#116;&#104;&#101; &#115;&#101;&#112;&#97;&#114;&#97;&#116;&#111;&#114;. 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 &#114;&#111;&#108;&#101; &#111;&#102; &#116;&#104;&#101; &#115;&#101;&#112;&#97;&#114;&#97;&#116;&#111;&#114; (&#105;&#110;&#116;&#101;&#103;&#101;&#114;) 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 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#115;&#101;&#116; &#116;&#104;&#101; &#102;&#105;&#114;&#115;&#116; &#115;&#101;&#112;&#97;&#114;&#97;&#116;&#111;&#114;. 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 &#114;&#111;w &#110;&#117;&#109;&#98;&#101;&#114; &#111;&#102; &#116;&#104;&#101; &#102;&#105;&#114;&#115;&#116; &#115;&#101;&#112;&#97;&#114;&#97;&#116;&#111;&#114; (&#105;&#110;&#116;&#101;&#103;&#101;&#114;) 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 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#115;&#101;&#116; &#116;&#104;&#101; &#109;&#97;x&#105;&#109;&#117;&#109; &#110;&#117;&#109;&#98;&#101;&#114; &#111;&#102; &#101;&#110;&#116;&#114;&#105;&#101;&#115; &#116;&#111; &#115;&#104;&#111;w. 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 &#109;&#97;x&#105;&#109;&#117;&#109; &#110;&#117;&#109;&#98;&#101;&#114; &#111;&#102; &#101;&#110;&#116;&#114;&#105;&#101;&#115; &#116;&#111; &#115;&#104;&#111;w (&#105;&#110;&#116;&#101;&#103;&#101;&#114;) 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 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#115;&#101;&#116; &#116;&#104;&#101; &#109;&#111;&#100;&#101;&#108; &#102;&#111;&#114; &#116;&#104;&#101; &#109;&#101;&#110;&#117;. 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 &#114;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#109;&#111;&#100;&#101;&#108; (&#81;&#65;&#98;&#115;&#116;&#114;&#97;&#99;&#116;&#73;&#116;&#101;&#109;&#77;&#111;&#100;&#101;&#108;) 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 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#115;&#101;&#116; &#116;&#104;&#101; &#105;&#110;&#100;&#101;x &#111;&#102; &#116;&#104;&#101; &#114;&#111;&#111;&#116; &#105;&#116;&#101;&#109;. 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 &#105;&#110;&#100;&#101;x &#111;&#102; &#116;&#104;&#101; &#114;&#111;&#111;&#116; &#105;&#116;&#101;&#109; (&#81;&#77;&#111;&#100;&#101;&#108;&#73;&#110;&#100;&#101;x) 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 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#115;&#101;&#116; &#116;&#104;&#101; &#114;&#111;&#108;&#101; &#111;&#102; &#116;&#104;&#101; &#115;&#101;&#112;&#97;&#114;&#97;&#116;&#111;&#114;. 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 &#114;&#111;&#108;&#101; &#111;&#102; &#116;&#104;&#101; &#115;&#101;&#112;&#97;&#114;&#97;&#116;&#111;&#114; (&#105;&#110;&#116;&#101;&#103;&#101;&#114;) 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 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#115;&#101;&#116; &#116;&#104;&#101; &#114;&#111;&#108;&#101; &#111;&#102; &#116;&#104;&#101; &#115;&#116;&#97;&#116;&#117;&#115; &#98;&#97;&#114; &#116;&#101;x&#116;. 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 &#114;&#111;&#108;&#101; &#111;&#102; &#116;&#104;&#101; &#115;&#116;&#97;&#116;&#117;&#115; &#98;&#97;&#114; &#116;&#101;x&#116; (&#105;&#110;&#116;&#101;&#103;&#101;&#114;) 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 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#103;&#101;&#116; &#116;&#104;&#101; &#114;&#111;&#108;&#101; &#111;&#102; &#116;&#104;&#101; &#115;&#116;&#97;&#116;&#117;&#115; &#98;&#97;&#114; &#116;&#101;x&#116;. 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 &#114;&#111;&#108;&#101; &#111;&#102; &#116;&#104;&#101; &#115;&#116;&#97;&#116;&#117;&#115; &#98;&#97;&#114; &#116;&#101;x&#116; (&#105;&#110;&#116;&#101;&#103;&#101;&#114;) 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>

eric ide

mercurial