code: def setVisible(self, state):
          
          super(XDockToolbar, self).setVisible(state)
          
          if state:
              self.rebuild()
              self.setCurrentAction(None)
docs: Sets whether or not this toolbar is visible.  If shown, it will rebuild.
          
          :param      state | <bool>