Added "what's this" to the search bar itself, but I think this uses the built-in FreeCAD help which does not work on my copy right now

This commit is contained in:
Suzanne Soy 2021-10-06 01:54:10 +01:00
parent 26019aa60b
commit 0dae12db60

View File

@ -20,6 +20,7 @@ def addToolSearchBox():
sea.resultSelected.connect(lambda index, groupId: __import__('GetItemGroups').onResultSelected(index, groupId)) sea.resultSelected.connect(lambda index, groupId: __import__('GetItemGroups').onResultSelected(index, groupId))
wax = QtGui.QWidgetAction(None) wax = QtGui.QWidgetAction(None)
wax.setWhatsThis('Use this search bar to find tools, document objects, preferences and more') wax.setWhatsThis('Use this search bar to find tools, document objects, preferences and more')
sea.setWhatsThis('Use this search bar to find tools, document objects, preferences and more')
wax.setDefaultWidget(sea) wax.setDefaultWidget(sea)
#mbr.addWidget(sea) #mbr.addWidget(sea)
mbr.addAction(wax) mbr.addAction(wax)