code: def setHidden(self, state):
          
          super(XListGroupItem, self).setHidden(state)
          
          for child in self.children():
              child.setHidden(state or not self.isExpanded())
docs: Marks this item as hidden based on the state.  This will affect all
          its children as well.
          
          :param      state | <bool>