code: def resetToDefault(self, resetChildren=True):
          
          self.data = self.defaultData
          if resetChildren:
              for child in self.childItems:
                  child.resetToDefault(resetChildren=True)
docs: Resets the data to the default data. By default the children will be reset as well