code: def leaveEvent(self, event):
          
          super(XDockToolbar, self).leaveEvent(event)
          
          if not self.actionHeld():
              self.setCurrentAction(None)
docs: Clears the current action for this widget.
          
          :param      event | <QEvent>