53 </table> |
53 </table> |
54 <h3>Methods</h3> |
54 <h3>Methods</h3> |
55 <table> |
55 <table> |
56 <tr> |
56 <tr> |
57 <td><a href="#E5ModelToolBar.__init__">E5ModelToolBar</a></td> |
57 <td><a href="#E5ModelToolBar.__init__">E5ModelToolBar</a></td> |
58 <td>Constructor</td> |
58 <td>Constructor</td> |
59 </tr><tr> |
59 </tr><tr> |
60 <td><a href="#E5ModelToolBar._build">_build</a></td> |
60 <td><a href="#E5ModelToolBar._build">_build</a></td> |
61 <td>Protected slot to build the tool bar.</td> |
61 <td>Protected slot to build the tool bar.</td> |
62 </tr><tr> |
62 </tr><tr> |
63 <td><a href="#E5ModelToolBar._createMenu">_createMenu</a></td> |
63 <td><a href="#E5ModelToolBar._createMenu">_createMenu</a></td> |
64 <td>Protected method to create the menu for a tool bar action.</td> |
64 <td>Protected method to create the menu for a tool bar action.</td> |
65 </tr><tr> |
65 </tr><tr> |
66 <td><a href="#E5ModelToolBar.dragEnterEvent">dragEnterEvent</a></td> |
66 <td><a href="#E5ModelToolBar.dragEnterEvent">dragEnterEvent</a></td> |
67 <td>Protected method to handle drag enter events.</td> |
67 <td>Protected method to handle drag enter events.</td> |
68 </tr><tr> |
68 </tr><tr> |
69 <td><a href="#E5ModelToolBar.dropEvent">dropEvent</a></td> |
69 <td><a href="#E5ModelToolBar.dropEvent">dropEvent</a></td> |
70 <td>Protected method to handle drop events.</td> |
70 <td>Protected method to handle drop events.</td> |
71 </tr><tr> |
71 </tr><tr> |
72 <td><a href="#E5ModelToolBar.eventFilter">eventFilter</a></td> |
72 <td><a href="#E5ModelToolBar.eventFilter">eventFilter</a></td> |
73 <td>Public method to handle event for other objects.</td> |
73 <td>Public method to handle event for other objects.</td> |
74 </tr><tr> |
74 </tr><tr> |
75 <td><a href="#E5ModelToolBar.hideEvent">hideEvent</a></td> |
75 <td><a href="#E5ModelToolBar.hideEvent">hideEvent</a></td> |
76 <td>Protected method to handle hide events.</td> |
76 <td>Protected method to handle hide events.</td> |
77 </tr><tr> |
77 </tr><tr> |
78 <td><a href="#E5ModelToolBar.index">index</a></td> |
78 <td><a href="#E5ModelToolBar.index">index</a></td> |
79 <td>Public method to get the index of an action.</td> |
79 <td>Public method to get the index of an action.</td> |
80 </tr><tr> |
80 </tr><tr> |
81 <td><a href="#E5ModelToolBar.model">model</a></td> |
81 <td><a href="#E5ModelToolBar.model">model</a></td> |
82 <td>Public method to get a reference to the model.</td> |
82 <td>Public method to get a reference to the model.</td> |
83 </tr><tr> |
83 </tr><tr> |
84 <td><a href="#E5ModelToolBar.mouseMoveEvent">mouseMoveEvent</a></td> |
84 <td><a href="#E5ModelToolBar.mouseMoveEvent">mouseMoveEvent</a></td> |
85 <td>Protected method to handle mouse move events.</td> |
85 <td>Protected method to handle mouse move events.</td> |
86 </tr><tr> |
86 </tr><tr> |
87 <td><a href="#E5ModelToolBar.resetFlags">resetFlags</a></td> |
87 <td><a href="#E5ModelToolBar.resetFlags">resetFlags</a></td> |
88 <td>Public method to reset the saved internal state.</td> |
88 <td>Public method to reset the saved internal state.</td> |
89 </tr><tr> |
89 </tr><tr> |
90 <td><a href="#E5ModelToolBar.rootIndex">rootIndex</a></td> |
90 <td><a href="#E5ModelToolBar.rootIndex">rootIndex</a></td> |
91 <td>Public method to get the root index.</td> |
91 <td>Public method to get the root index.</td> |
92 </tr><tr> |
92 </tr><tr> |
93 <td><a href="#E5ModelToolBar.setModel">setModel</a></td> |
93 <td><a href="#E5ModelToolBar.setModel">setModel</a></td> |
94 <td>Public method to set the model for the tool bar.</td> |
94 <td>Public method to set the model for the tool bar.</td> |
95 </tr><tr> |
95 </tr><tr> |
96 <td><a href="#E5ModelToolBar.setRootIndex">setRootIndex</a></td> |
96 <td><a href="#E5ModelToolBar.setRootIndex">setRootIndex</a></td> |
97 <td>Public method to set the root index.</td> |
97 <td>Public method to set the root index.</td> |
98 </tr><tr> |
98 </tr><tr> |
99 <td><a href="#E5ModelToolBar.showEvent">showEvent</a></td> |
99 <td><a href="#E5ModelToolBar.showEvent">showEvent</a></td> |
100 <td>Protected method to handle show events.</td> |
100 <td>Protected method to handle show events.</td> |
101 </tr> |
101 </tr> |
102 </table> |
102 </table> |
103 <a NAME="E5ModelToolBar.__init__" ID="E5ModelToolBar.__init__"></a> |
103 <a NAME="E5ModelToolBar.__init__" ID="E5ModelToolBar.__init__"></a> |
104 <h4>E5ModelToolBar (Constructor)</h4> |
104 <h4>E5ModelToolBar (Constructor)</h4> |
105 <b>E5ModelToolBar</b>(<i>title = None, parent = None</i>) |
105 <b>E5ModelToolBar</b>(<i>title = None, parent = None</i>) |
106 <p> |
106 <p> |
107 Constructor |
107 Constructor |
108 </p><dl> |
108 </p><dl> |
109 <dt><i>title</i></dt> |
109 <dt><i>title</i></dt> |
110 <dd> |
110 <dd> |
111 title for the tool bar (string) |
111 title for the tool bar (string) |
112 </dd><dt><i>parent</i></dt> |
112 </dd><dt><i>parent</i></dt> |
113 <dd> |
113 <dd> |
114 reference to the parent widget (QWidget) |
114 reference to the parent widget (QWidget) |
115 </dd> |
115 </dd> |
116 </dl><a NAME="E5ModelToolBar._build" ID="E5ModelToolBar._build"></a> |
116 </dl><a NAME="E5ModelToolBar._build" ID="E5ModelToolBar._build"></a> |
117 <h4>E5ModelToolBar._build</h4> |
117 <h4>E5ModelToolBar._build</h4> |
118 <b>_build</b>(<i></i>) |
118 <b>_build</b>(<i></i>) |
119 <p> |
119 <p> |
120 Protected slot to build the tool bar. |
120 Protected slot to build the tool bar. |
121 </p><a NAME="E5ModelToolBar._createMenu" ID="E5ModelToolBar._createMenu"></a> |
121 </p><a NAME="E5ModelToolBar._createMenu" ID="E5ModelToolBar._createMenu"></a> |
122 <h4>E5ModelToolBar._createMenu</h4> |
122 <h4>E5ModelToolBar._createMenu</h4> |
123 <b>_createMenu</b>(<i></i>) |
123 <b>_createMenu</b>(<i></i>) |
124 <p> |
124 <p> |
125 Protected method to create the menu for a tool bar action. |
125 Protected method to create the menu for a tool bar action. |
126 </p><dl> |
126 </p><dl> |
127 <dt>Returns:</dt> |
127 <dt>Returns:</dt> |
128 <dd> |
128 <dd> |
129 menu for a tool bar action (E5ModelMenu) |
129 menu for a tool bar action (E5ModelMenu) |
130 </dd> |
130 </dd> |
131 </dl><a NAME="E5ModelToolBar.dragEnterEvent" ID="E5ModelToolBar.dragEnterEvent"></a> |
131 </dl><a NAME="E5ModelToolBar.dragEnterEvent" ID="E5ModelToolBar.dragEnterEvent"></a> |
132 <h4>E5ModelToolBar.dragEnterEvent</h4> |
132 <h4>E5ModelToolBar.dragEnterEvent</h4> |
133 <b>dragEnterEvent</b>(<i>evt</i>) |
133 <b>dragEnterEvent</b>(<i>evt</i>) |
134 <p> |
134 <p> |
135 Protected method to handle drag enter events. |
135 Protected method to handle drag enter events. |
136 </p><dl> |
136 </p><dl> |
137 <dt><i>evt</i></dt> |
137 <dt><i>evt</i></dt> |
138 <dd> |
138 <dd> |
139 reference to the event (QDragEnterEvent) |
139 reference to the event (QDragEnterEvent) |
140 </dd> |
140 </dd> |
141 </dl><a NAME="E5ModelToolBar.dropEvent" ID="E5ModelToolBar.dropEvent"></a> |
141 </dl><a NAME="E5ModelToolBar.dropEvent" ID="E5ModelToolBar.dropEvent"></a> |
142 <h4>E5ModelToolBar.dropEvent</h4> |
142 <h4>E5ModelToolBar.dropEvent</h4> |
143 <b>dropEvent</b>(<i>evt</i>) |
143 <b>dropEvent</b>(<i>evt</i>) |
144 <p> |
144 <p> |
145 Protected method to handle drop events. |
145 Protected method to handle drop events. |
146 </p><dl> |
146 </p><dl> |
147 <dt><i>evt</i></dt> |
147 <dt><i>evt</i></dt> |
148 <dd> |
148 <dd> |
149 reference to the event (QDropEvent) |
149 reference to the event (QDropEvent) |
150 </dd> |
150 </dd> |
151 </dl><a NAME="E5ModelToolBar.eventFilter" ID="E5ModelToolBar.eventFilter"></a> |
151 </dl><a NAME="E5ModelToolBar.eventFilter" ID="E5ModelToolBar.eventFilter"></a> |
152 <h4>E5ModelToolBar.eventFilter</h4> |
152 <h4>E5ModelToolBar.eventFilter</h4> |
153 <b>eventFilter</b>(<i>obj, evt</i>) |
153 <b>eventFilter</b>(<i>obj, evt</i>) |
154 <p> |
154 <p> |
155 Public method to handle event for other objects. |
155 Public method to handle event for other objects. |
156 </p><dl> |
156 </p><dl> |
157 <dt><i>obj</i></dt> |
157 <dt><i>obj</i></dt> |
158 <dd> |
158 <dd> |
159 reference to the object (QObject) |
159 reference to the object (QObject) |
160 </dd><dt><i>evt</i></dt> |
160 </dd><dt><i>evt</i></dt> |
161 <dd> |
161 <dd> |
162 reference to the event (QEvent) |
162 reference to the event (QEvent) |
163 </dd> |
163 </dd> |
164 </dl><dl> |
164 </dl><dl> |
165 <dt>Returns:</dt> |
165 <dt>Returns:</dt> |
166 <dd> |
166 <dd> |
167 flag indicating that the event should be filtered out (boolean) |
167 flag indicating that the event should be filtered out (boolean) |
168 </dd> |
168 </dd> |
169 </dl><a NAME="E5ModelToolBar.hideEvent" ID="E5ModelToolBar.hideEvent"></a> |
169 </dl><a NAME="E5ModelToolBar.hideEvent" ID="E5ModelToolBar.hideEvent"></a> |
170 <h4>E5ModelToolBar.hideEvent</h4> |
170 <h4>E5ModelToolBar.hideEvent</h4> |
171 <b>hideEvent</b>(<i>evt</i>) |
171 <b>hideEvent</b>(<i>evt</i>) |
172 <p> |
172 <p> |
173 Protected method to handle hide events. |
173 Protected method to handle hide events. |
174 </p><dl> |
174 </p><dl> |
175 <dt><i>evt</i></dt> |
175 <dt><i>evt</i></dt> |
176 <dd> |
176 <dd> |
177 reference to the hide event (QHideEvent) |
177 reference to the hide event (QHideEvent) |
178 </dd> |
178 </dd> |
179 </dl><a NAME="E5ModelToolBar.index" ID="E5ModelToolBar.index"></a> |
179 </dl><a NAME="E5ModelToolBar.index" ID="E5ModelToolBar.index"></a> |
180 <h4>E5ModelToolBar.index</h4> |
180 <h4>E5ModelToolBar.index</h4> |
181 <b>index</b>(<i>action</i>) |
181 <b>index</b>(<i>action</i>) |
182 <p> |
182 <p> |
183 Public method to get the index of an action. |
183 Public method to get the index of an action. |
184 </p><dl> |
184 </p><dl> |
185 <dt><i>action</i></dt> |
185 <dt><i>action</i></dt> |
186 <dd> |
186 <dd> |
187 reference to the action to get the index for (QAction) |
187 reference to the action to get the index for (QAction) |
188 </dd> |
188 </dd> |
189 </dl><dl> |
189 </dl><dl> |
190 <dt>Returns:</dt> |
190 <dt>Returns:</dt> |
191 <dd> |
191 <dd> |
192 index of the action (QModelIndex) |
192 index of the action (QModelIndex) |
193 </dd> |
193 </dd> |
194 </dl><a NAME="E5ModelToolBar.model" ID="E5ModelToolBar.model"></a> |
194 </dl><a NAME="E5ModelToolBar.model" ID="E5ModelToolBar.model"></a> |
195 <h4>E5ModelToolBar.model</h4> |
195 <h4>E5ModelToolBar.model</h4> |
196 <b>model</b>(<i></i>) |
196 <b>model</b>(<i></i>) |
197 <p> |
197 <p> |
198 Public method to get a reference to the model. |
198 Public method to get a reference to the model. |
199 </p><dl> |
199 </p><dl> |
200 <dt>Returns:</dt> |
200 <dt>Returns:</dt> |
201 <dd> |
201 <dd> |
202 reference to the model (QAbstractItemModel) |
202 reference to the model (QAbstractItemModel) |
203 </dd> |
203 </dd> |
204 </dl><a NAME="E5ModelToolBar.mouseMoveEvent" ID="E5ModelToolBar.mouseMoveEvent"></a> |
204 </dl><a NAME="E5ModelToolBar.mouseMoveEvent" ID="E5ModelToolBar.mouseMoveEvent"></a> |
205 <h4>E5ModelToolBar.mouseMoveEvent</h4> |
205 <h4>E5ModelToolBar.mouseMoveEvent</h4> |
206 <b>mouseMoveEvent</b>(<i>evt</i>) |
206 <b>mouseMoveEvent</b>(<i>evt</i>) |
207 <p> |
207 <p> |
208 Protected method to handle mouse move events. |
208 Protected method to handle mouse move events. |
209 </p><dl> |
209 </p><dl> |
210 <dt><i>evt</i></dt> |
210 <dt><i>evt</i></dt> |
211 <dd> |
211 <dd> |
212 reference to the event (QMouseEvent) |
212 reference to the event (QMouseEvent) |
213 </dd> |
213 </dd> |
214 </dl><a NAME="E5ModelToolBar.resetFlags" ID="E5ModelToolBar.resetFlags"></a> |
214 </dl><a NAME="E5ModelToolBar.resetFlags" ID="E5ModelToolBar.resetFlags"></a> |
215 <h4>E5ModelToolBar.resetFlags</h4> |
215 <h4>E5ModelToolBar.resetFlags</h4> |
216 <b>resetFlags</b>(<i></i>) |
216 <b>resetFlags</b>(<i></i>) |
217 <p> |
217 <p> |
218 Public method to reset the saved internal state. |
218 Public method to reset the saved internal state. |
219 </p><a NAME="E5ModelToolBar.rootIndex" ID="E5ModelToolBar.rootIndex"></a> |
219 </p><a NAME="E5ModelToolBar.rootIndex" ID="E5ModelToolBar.rootIndex"></a> |
220 <h4>E5ModelToolBar.rootIndex</h4> |
220 <h4>E5ModelToolBar.rootIndex</h4> |
221 <b>rootIndex</b>(<i></i>) |
221 <b>rootIndex</b>(<i></i>) |
222 <p> |
222 <p> |
223 Public method to get the root index. |
223 Public method to get the root index. |
224 </p><dl> |
224 </p><dl> |
225 <dt>Returns:</dt> |
225 <dt>Returns:</dt> |
226 <dd> |
226 <dd> |
227 root index (QModelIndex) |
227 root index (QModelIndex) |
228 </dd> |
228 </dd> |
229 </dl><a NAME="E5ModelToolBar.setModel" ID="E5ModelToolBar.setModel"></a> |
229 </dl><a NAME="E5ModelToolBar.setModel" ID="E5ModelToolBar.setModel"></a> |
230 <h4>E5ModelToolBar.setModel</h4> |
230 <h4>E5ModelToolBar.setModel</h4> |
231 <b>setModel</b>(<i>model</i>) |
231 <b>setModel</b>(<i>model</i>) |
232 <p> |
232 <p> |
233 Public method to set the model for the tool bar. |
233 Public method to set the model for the tool bar. |
234 </p><dl> |
234 </p><dl> |
235 <dt><i>model</i></dt> |
235 <dt><i>model</i></dt> |
236 <dd> |
236 <dd> |
237 reference to the model (QAbstractItemModel) |
237 reference to the model (QAbstractItemModel) |
238 </dd> |
238 </dd> |
239 </dl><a NAME="E5ModelToolBar.setRootIndex" ID="E5ModelToolBar.setRootIndex"></a> |
239 </dl><a NAME="E5ModelToolBar.setRootIndex" ID="E5ModelToolBar.setRootIndex"></a> |
240 <h4>E5ModelToolBar.setRootIndex</h4> |
240 <h4>E5ModelToolBar.setRootIndex</h4> |
241 <b>setRootIndex</b>(<i>idx</i>) |
241 <b>setRootIndex</b>(<i>idx</i>) |
242 <p> |
242 <p> |
243 Public method to set the root index. |
243 Public method to set the root index. |
244 </p><dl> |
244 </p><dl> |
245 <dt><i>idx</i></dt> |
245 <dt><i>idx</i></dt> |
246 <dd> |
246 <dd> |
247 index to be set as the root index (QModelIndex) |
247 index to be set as the root index (QModelIndex) |
248 </dd> |
248 </dd> |
249 </dl><a NAME="E5ModelToolBar.showEvent" ID="E5ModelToolBar.showEvent"></a> |
249 </dl><a NAME="E5ModelToolBar.showEvent" ID="E5ModelToolBar.showEvent"></a> |
250 <h4>E5ModelToolBar.showEvent</h4> |
250 <h4>E5ModelToolBar.showEvent</h4> |
251 <b>showEvent</b>(<i>evt</i>) |
251 <b>showEvent</b>(<i>evt</i>) |
252 <p> |
252 <p> |
253 Protected method to handle show events. |
253 Protected method to handle show events. |
254 </p><dl> |
254 </p><dl> |
255 <dt><i>evt</i></dt> |
255 <dt><i>evt</i></dt> |
256 <dd> |
256 <dd> |
257 reference to the hide event (QHideEvent) |
257 reference to the hide event (QHideEvent) |
258 </dd> |
258 </dd> |
259 </dl> |
259 </dl> |
260 <div align="right"><a href="#top">Up</a></div> |
260 <div align="right"><a href="#top">Up</a></div> |
261 <hr /> |
261 <hr /> |
262 </body></html> |
262 </body></html> |