157 (QKeySequence.StandardKey) |
157 (QKeySequence.StandardKey) |
158 """ |
158 """ |
159 super().setShortcuts(shortcuts) |
159 super().setShortcuts(shortcuts) |
160 self.__ammendToolTip() |
160 self.__ammendToolTip() |
161 |
161 |
|
162 def setIconText(self, text): |
|
163 """ |
|
164 Public slot to set the icon text of the action. |
|
165 |
|
166 @param text new icon text (string) |
|
167 """ |
|
168 super().setIconText(text) |
|
169 self.__ammendToolTip() |
|
170 |
162 def __ammendToolTip(self): |
171 def __ammendToolTip(self): |
163 """ |
172 """ |
164 Private slot to add the primary keyboard accelerator to the tooltip. |
173 Private slot to add the primary keyboard accelerator to the tooltip. |
165 """ |
174 """ |
166 shortcut = self.shortcut().toString(QKeySequence.NativeText) |
175 shortcut = self.shortcut().toString(QKeySequence.NativeText) |