fixes #0003258: Draft Snap toolbar doesn't display MenuText AKA status bar text when hovering over icons

This commit is contained in:
wmayer
2017-11-19 17:59:46 +01:00
parent 54219f151c
commit b3631e134b

View File

@@ -1231,7 +1231,11 @@ class Snapper:
self.toolbar.addAction(b)
QtCore.QObject.connect(b,QtCore.SIGNAL("toggled(bool)"),self.saveSnapModes)
self.toolbarButtons.append(b)
# restoring states
# set status tip where needed
for b in self.toolbar.actions():
if len(b.statusTip()) == 0:
b.setStatusTip(b.toolTip())
# restoring states
t = Draft.getParam("snapModes","111111111101111")
if t:
c = 0