Sets whether or not updates will be enabled.
        
        :param      state | <bool>

def setUpdatesEnabled(self, state):
        """
        Sets whether or not updates will be enabled.
        
        :param      state | <bool>
        """
        super(XGanttWidget, self).setUpdatesEnabled(state)
        self.treeWidget().setUpdatesEnabled(state)
        self.viewWidget().setUpdatesEnabled(state)
        
        if state:
            self._updateViewRect()
            for i in range(self.topLevelItemCount()):
                item = self.topLevelItem(i)
                try:
                    item.sync(recursive=True)
                except AttributeError:
                    continue