Returns the size hint for the inputed index.
        
        :param      option  | <QStyleOptionViewItem>
                    index   | <QModelIndex>
        
        :return     <QtCore.QSize>

def sizeHint(self, option, index):
        """
        Returns the size hint for the inputed index.
        
        :param      option  | <QStyleOptionViewItem>
                    index   | <QModelIndex>
        
        :return     <QtCore.QSize>
        """
        size = super(XTreeWidgetDelegate, self).sizeHint(option, index)
        
        tree = self.parent()
        item = tree.itemFromIndex(index)
        
        try:
            fixed_height = item.fixedHeight()
        except:
            fixed_height = 0
        
        if fixed_height:
            size.setHeight(fixed_height)
        
        return size