Syncs the information from this item to the tree.

def syncTree(self, recursive=False, blockSignals=True):
        """
        Syncs the information from this item to the tree.
        """
        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)