Example #1
0
    def _set_variant_cell(self, row, column, context_model, variant,
                          reference_variant=None, hide_locks=False,
                          read_only=False):
        if row >= self.rowCount():
            self.setRowCount(row + 1)

        widget = VariantCellWidget(context_model, variant,
                                   reference_variant=reference_variant,
                                   hide_locks=hide_locks, read_only=read_only)
        self.setCellWidget(row, column, widget)
        widget._set_stale(column != 1)
Example #2
0
    def _set_variant_cell(self,
                          row,
                          column,
                          context_model,
                          variant,
                          reference_variant=None,
                          hide_locks=False,
                          read_only=False):
        if row >= self.rowCount():
            self.setRowCount(row + 1)

        widget = VariantCellWidget(context_model,
                                   variant,
                                   reference_variant=reference_variant,
                                   hide_locks=hide_locks,
                                   read_only=read_only)
        self.setCellWidget(row, column, widget)
        widget._set_stale(column != 1)