code: def restoreXml(self, xml):
          
          self.uiRecordTREE.restoreXml(xml.find('tree'))
          
          # restore the query
          xquery = xml.find('query')
          if xquery is not None:
              self.setQuery(Q.fromXml(xquery[0]))
docs: Restores the settings for this edit from xml.
          
          :param      xml | <xml.etree.ElementTree>