Skip to content

Commit

Permalink
Fix an issue where tool tips do not show up on pop-up menu items for Qt
Browse files Browse the repository at this point in the history
  • Loading branch information
ejeschke committed Oct 19, 2024
1 parent 19a352a commit 548660a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ginga/qtw/Widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -1817,6 +1817,9 @@ def __init__(self):

# NOTE: this get's overwritten if created from Menubar
self.widget = QtGui.QMenu()
if hasattr(self.widget, 'setToolTipsVisible'):
# only for QT >= 5.1
self.widget.setToolTipsVisible(True)
self.menus = Bunch.Bunch(caseless=True)

def add_widget(self, child):
Expand Down

0 comments on commit 548660a

Please sign in to comment.