134
134
<td><a href="#E4Action.__init__">E4Action</a></td>
135
135
<td>Constructor</td>
137
<td><a href="#E4Action.__ammendToolTip">__ammendToolTip</a></td>
138
<td>Private slot to add the primary keyboard accelerator to the tooltip.</td>
137
140
<td><a href="#E4Action.alternateShortcut">alternateShortcut</a></td>
138
141
<td>Public method to retrieve the alternative keyboard shortcut.</td>
140
143
<td><a href="#E4Action.setAlternateShortcut">setAlternateShortcut</a></td>
141
144
<td>Public slot to set the alternative keyboard shortcut.</td>
146
<td><a href="#E4Action.setIconText">setIconText</a></td>
147
<td>Public slot to set the icon text of the action.</td>
149
<td><a href="#E4Action.setShortcut">setShortcut</a></td>
150
<td>Public slot to set the keyboard shortcut.</td>
152
<td><a href="#E4Action.setShortcuts">setShortcuts</a></td>
153
<td>Public slot to set the list of keyboard shortcuts.</td>
144
156
<h3>Static Methods</h3>
169
181
parent (QObject), name (string or QString)</li>
172
</dl><a NAME="E4Action.alternateShortcut" ID="E4Action.alternateShortcut"></a>
184
</dl><a NAME="E4Action.__ammendToolTip" ID="E4Action.__ammendToolTip"></a>
185
<h4>E4Action.__ammendToolTip</h4>
186
<b>__ammendToolTip</b>(<i></i>)
188
Private slot to add the primary keyboard accelerator to the tooltip.
189
</p><a NAME="E4Action.alternateShortcut" ID="E4Action.alternateShortcut"></a>
173
190
<h4>E4Action.alternateShortcut</h4>
174
191
<b>alternateShortcut</b>(<i></i>)
182
199
</dl><a NAME="E4Action.setAlternateShortcut" ID="E4Action.setAlternateShortcut"></a>
183
200
<h4>E4Action.setAlternateShortcut</h4>
184
<b>setAlternateShortcut</b>(<i>shortcut</i>)
201
<b>setAlternateShortcut</b>(<i>shortcut, removeEmpty=False</i>)
186
203
Public slot to set the alternative keyboard shortcut.
188
205
<dt><i>shortcut</i></dt>
190
207
the alternative accelerator (QKeySequence)
208
</dd><dt><i>removeEmpty</i></dt>
210
flag indicating to remove the alternate shortcut,
211
if it is empty (boolean)
213
</dl><a NAME="E4Action.setIconText" ID="E4Action.setIconText"></a>
214
<h4>E4Action.setIconText</h4>
215
<b>setIconText</b>(<i>text</i>)
217
Public slot to set the icon text of the action.
221
new tool tip (string or QString)
223
</dl><a NAME="E4Action.setShortcut" ID="E4Action.setShortcut"></a>
224
<h4>E4Action.setShortcut</h4>
225
<b>setShortcut</b>(<i>shortcut</i>)
227
Public slot to set the keyboard shortcut.
229
<dt><i>shortcut</i></dt>
231
the accelerator (QKeySequence)
233
</dl><a NAME="E4Action.setShortcuts" ID="E4Action.setShortcuts"></a>
234
<h4>E4Action.setShortcuts</h4>
235
<b>setShortcuts</b>(<i>shortcuts</i>)
237
Public slot to set the list of keyboard shortcuts.
239
<dt><i>shortcuts</i></dt>
241
list of keyboard accelerators (list of QKeySequence)
242
or key for a platform dependent list of accelerators
243
(QKeySequence.StandardKey)
193
246
<div align="right"><a href="#top">Up</a></div>