eric6/E5Gui/E5Action.py

changeset 8143
2c730d5fd177
parent 7923
91e843545d9a
child 8218
7c09585bd960
equal deleted inserted replaced
8141:27f636beebad 8143:2c730d5fd177
178 178
179 def __ammendToolTip(self): 179 def __ammendToolTip(self):
180 """ 180 """
181 Private slot to add the primary keyboard accelerator to the tooltip. 181 Private slot to add the primary keyboard accelerator to the tooltip.
182 """ 182 """
183 shortcut = self.shortcut().toString(QKeySequence.NativeText) 183 shortcut = self.shortcut().toString(
184 QKeySequence.SequenceFormat.NativeText)
184 if shortcut: 185 if shortcut:
185 if e5App().isLeftToRight(): 186 if e5App().isLeftToRight():
186 fmt = "{0} ({1})" 187 fmt = "{0} ({1})"
187 else: 188 else:
188 fmt = "({1}) {0}" 189 fmt = "({1}) {0}"

eric ide

mercurial