def sizeHint(self, style, model_index): """Override Qt method.""" column = model_index.column() if column in [C.ACTION_COLUMNS, C.COL_PACKAGE_TYPE]: return QSize(32, 32) else: return QItemDelegate.sizeHint(self, style, model_index)
def sizeHint(self, style, model_index): column = model_index.column() if column in [const.COL_PACKAGE_TYPE] + [const.ACTION_COLUMNS, const.COL_PACKAGE_TYPE]: return QSize(24, 24) else: return QItemDelegate.sizeHint(self, style, model_index)