Skip to content

Commit

Permalink
Include hotkey in checkbutton tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
glutanimate committed Jul 26, 2017
1 parent 00a2cfc commit 94babc9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Sticky Searches.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,9 @@ def onSetupSearch(self):
icons = cb.get("icons", None)

b = QCheckBox(label, widget)
b.setToolTip(tooltip)
if tooltip or hotkey:
cb_tt = "{} ({})".format(tooltip, hotkey)
b.setToolTip(cb_tt)
b.setFocusPolicy(Qt.NoFocus)

if icons:
Expand Down

0 comments on commit 94babc9

Please sign in to comment.