E5Gui/E5Action.py

branch
5_2_x
changeset 1579
6a9a44a74031
parent 1521
1e684e74d2a1
child 2302
f29e9405c851
equal deleted inserted replaced
1578:bf93c2a874e1 1579:6a9a44a74031
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