E5Gui/E5Action.py

changeset 1580
7495b3e892a9
parent 1521
1e684e74d2a1
child 2302
f29e9405c851
equal deleted inserted replaced
1576:72e5b4b8bad7 1580:7495b3e892a9
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)

eric ide

mercurial