Updates the items icon based on its state.
        
        :param      item | <QTreeWidgetItem>

def updateItemIcon(self, item):
        """
        Updates the items icon based on its state.
        
        :param      item | <QTreeWidgetItem>
        """
        # update the column width
        self.setUpdatesEnabled(False)
        colwidth = self.columnWidth(0)
        self.resizeColumnToContents(0)
        new_colwidth = self.columnWidth(0)
        
        if new_colwidth < colwidth:
            self.setColumnWidth(0, colwidth)
        self.setUpdatesEnabled(True)