Skip to content
Snippets Groups Projects
Commit fa73d5a8 authored by Langella Olivier's avatar Langella Olivier
Browse files

coverage click launch protein view

parent e45f9fd9
No related branches found
No related tags found
No related merge requests found
......@@ -193,9 +193,9 @@ void ProteinTableProxyModel::onTableClicked(const QModelIndex &index)
//_protein_table_model_p->onTableClicked(this->mapToSource(index));
QModelIndex source_index(this->mapToSource(index));
int row = source_index.row();
int col = source_index.column();
ProteinListColumn col = (ProteinListColumn) source_index.column();
ProteinMatch* p_protein_match = _protein_table_model_p->getIdentificationGroup()->getProteinMatchList().at(row);
if (col == 0) //add a checkbox to cell(1,0)
if (col == ProteinListColumn::checked) //add a checkbox to cell(1,0)
{
if ( p_protein_match->isChecked()) {
......@@ -207,7 +207,7 @@ void ProteinTableProxyModel::onTableClicked(const QModelIndex &index)
_p_protein_list_window->edited();
}
else {
if ((col == (std::int8_t) ProteinListColumn::accession)||(col == (std::int8_t) ProteinListColumn::description)) {
if ((col == ProteinListColumn::accession)||(col == ProteinListColumn::description)||(col == ProteinListColumn::coverage)) {
_p_protein_list_window->askProteinDetailView(p_protein_match);
}
else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment