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}" |