code: def setInverted(self, state):
          
          collapsed = self.isCollapsed()
          self._inverted = state
          if self.isCollapsible():
              self.setCollapsed(collapsed)
docs: Sets whether or not to invert the check state for collapsing.
          
          :param      state | <bool>