Documentation/Source/eric5.E5Gui.E5ModelToolBar.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.E5ModelToolBar</h1> 23 <h1>eric5.E5Gui.E5ModelToolBar</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; &#116;&#111;&#111;&#108; &#98;&#97;&#114; &#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 tool bar 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="#E5ModelToolBar">E5ModelToolBar</a></td> 34 <td><a href="#E5ModelToolBar">E5ModelToolBar</a></td>
35 <td>&#67;&#108;&#97;&#115;&#115; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#97; &#116;&#111;&#111;&#108; &#98;&#97;&#114; &#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 tool bar 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="E5ModelToolBar" ID="E5ModelToolBar"></a> 43 <a NAME="E5ModelToolBar" ID="E5ModelToolBar"></a>
44 <h2>E5ModelToolBar</h2> 44 <h2>E5ModelToolBar</h2>
45 <p> 45 <p>
46 &#67;&#108;&#97;&#115;&#115; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#97; &#116;&#111;&#111;&#108; &#98;&#97;&#114; &#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 tool bar populated from a QAbstractItemModel.
47 </p> 47 </p>
48 <h3>Derived from</h3> 48 <h3>Derived from</h3>
49 QToolBar 49 QToolBar
50 <h3>Class Attributes</h3> 50 <h3>Class Attributes</h3>
51 <table> 51 <table>
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>&#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114;</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>&#80;&#114;&#111;&#116;&#101;&#99;&#116;&#101;&#100; &#115;&#108;&#111;&#116; &#116;&#111; &#98;&#117;&#105;&#108;&#100; &#116;&#104;&#101; &#116;&#111;&#111;&#108; &#98;&#97;&#114;.</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>&#80;&#114;&#111;&#116;&#101;&#99;&#116;&#101;&#100; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#99;&#114;&#101;&#97;&#116;&#101; &#116;&#104;&#101; &#109;&#101;&#110;&#117; &#102;&#111;&#114; &#97; &#116;&#111;&#111;&#108; &#98;&#97;&#114; &#97;&#99;&#116;&#105;&#111;&#110;.</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>&#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> 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>&#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> 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>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#101;v&#101;&#110;&#116; &#102;&#111;&#114; &#111;&#116;&#104;&#101;&#114; &#111;&#98;&#106;&#101;&#99;&#116;&#115;.</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>&#80;&#114;&#111;&#116;&#101;&#99;&#116;&#101;&#100; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#104;&#105;&#100;&#101; &#101;v&#101;&#110;&#116;&#115;.</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>&#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> 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>&#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> 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>&#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> 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>&#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> 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>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#103;&#101;&#116; &#116;&#104;&#101; &#114;&#111;&#111;&#116; &#105;&#110;&#100;&#101;x.</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>&#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; &#116;&#111;&#111;&#108; &#98;&#97;&#114;.</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>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#115;&#101;&#116; &#116;&#104;&#101; &#114;&#111;&#111;&#116; &#105;&#110;&#100;&#101;x.</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>&#80;&#114;&#111;&#116;&#101;&#99;&#116;&#101;&#100; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#115;&#104;&#111;w &#101;v&#101;&#110;&#116;&#115;.</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 &#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114; 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 &#116;&#105;&#116;&#108;&#101; &#102;&#111;&#114; &#116;&#104;&#101; &#116;&#111;&#111;&#108; &#98;&#97;&#114; (&#115;&#116;&#114;&#105;&#110;&#103;) 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 &#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;) 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 &#80;&#114;&#111;&#116;&#101;&#99;&#116;&#101;&#100; &#115;&#108;&#111;&#116; &#116;&#111; &#98;&#117;&#105;&#108;&#100; &#116;&#104;&#101; &#116;&#111;&#111;&#108; &#98;&#97;&#114;. 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 &#80;&#114;&#111;&#116;&#101;&#99;&#116;&#101;&#100; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#99;&#114;&#101;&#97;&#116;&#101; &#116;&#104;&#101; &#109;&#101;&#110;&#117; &#102;&#111;&#114; &#97; &#116;&#111;&#111;&#108; &#98;&#97;&#114; &#97;&#99;&#116;&#105;&#111;&#110;. 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 &#109;&#101;&#110;&#117; &#102;&#111;&#114; &#97; &#116;&#111;&#111;&#108; &#98;&#97;&#114; &#97;&#99;&#116;&#105;&#111;&#110; (&#69;&#53;&#77;&#111;&#100;&#101;&#108;&#77;&#101;&#110;&#117;) 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 &#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;. 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 &#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;) 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 &#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;. 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 &#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;) 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 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#101;v&#101;&#110;&#116; &#102;&#111;&#114; &#111;&#116;&#104;&#101;&#114; &#111;&#98;&#106;&#101;&#99;&#116;&#115;. 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 &#114;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#111;&#98;&#106;&#101;&#99;&#116; (&#81;&#79;&#98;&#106;&#101;&#99;&#116;) 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 &#114;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#101;v&#101;&#110;&#116; (&#81;&#69;v&#101;&#110;&#116;) 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 &#102;&#108;&#97;&#103; &#105;&#110;&#100;&#105;&#99;&#97;&#116;&#105;&#110;&#103; &#116;&#104;&#97;&#116; &#116;&#104;&#101; &#101;v&#101;&#110;&#116; &#115;&#104;&#111;&#117;&#108;&#100; &#98;&#101; &#102;&#105;&#108;&#116;&#101;&#114;&#101;&#100; &#111;&#117;&#116; (&#98;&#111;&#111;&#108;&#101;&#97;&#110;) 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 &#80;&#114;&#111;&#116;&#101;&#99;&#116;&#101;&#100; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#104;&#105;&#100;&#101; &#101;v&#101;&#110;&#116;&#115;. 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 &#114;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#104;&#105;&#100;&#101; &#101;v&#101;&#110;&#116; (&#81;&#72;&#105;&#100;&#101;&#69;v&#101;&#110;&#116;) 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 &#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;. 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 &#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;) 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 &#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) 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 &#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;. 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 &#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;) 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 &#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;. 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 &#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;) 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 &#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;. 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 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#103;&#101;&#116; &#116;&#104;&#101; &#114;&#111;&#111;&#116; &#105;&#110;&#100;&#101;x. 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 &#114;&#111;&#111;&#116; &#105;&#110;&#100;&#101;x (&#81;&#77;&#111;&#100;&#101;&#108;&#73;&#110;&#100;&#101;x) 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 &#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; &#116;&#111;&#111;&#108; &#98;&#97;&#114;. 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 &#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;) 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 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#115;&#101;&#116; &#116;&#104;&#101; &#114;&#111;&#111;&#116; &#105;&#110;&#100;&#101;x. 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 &#105;&#110;&#100;&#101;x &#116;&#111; &#98;&#101; &#115;&#101;&#116; &#97;&#115; &#116;&#104;&#101; &#114;&#111;&#111;&#116; &#105;&#110;&#100;&#101;x (&#81;&#77;&#111;&#100;&#101;&#108;&#73;&#110;&#100;&#101;x) 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 &#80;&#114;&#111;&#116;&#101;&#99;&#116;&#101;&#100; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#115;&#104;&#111;w &#101;v&#101;&#110;&#116;&#115;. 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 &#114;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#104;&#105;&#100;&#101; &#101;v&#101;&#110;&#116; (&#81;&#72;&#105;&#100;&#101;&#69;v&#101;&#110;&#116;) 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>

eric ide

mercurial