code: def syncTree(self, recursive=False, blockSignals=True):
          
          tree = self.treeWidget()
          
          # sync the tree information
          if not tree:
              return
          
          items = [self]
          if recursive:
              items += list(self.children(recursive=True))
          
          if blockSignals and not tree.signalsBlocked():
              blocked = True
              tree.blockSignals(True)
          else:
              blocked = False
          
          date_format = self.ganttWidget().dateFormat()
          
          for item in items:
              for c, col in enumerate(tree.columns()):
                  value = item.property(col, '')
                  item.setData(c, Qt.EditRole, wrapVariant(value))
          
          if blocked:
              tree.blockSignals(False)
docs: Syncs the information from this item to the tree.