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

move context menu at click position

parent e841723d
No related branches found
No related tags found
No related merge requests found
......@@ -145,7 +145,7 @@ public:
};
unsigned int ProteinXtp::countTrypticPeptidesForPAI() const {
qDebug() << "ProteinXtp::countTrypticPeptidesForPAI begin";
//qDebug() << "ProteinXtp::countTrypticPeptidesForPAI begin";
try {
pappso::Enzyme kinase;
kinase.setMiscleavage(0);
......@@ -164,7 +164,7 @@ unsigned int ProteinXtp::countTrypticPeptidesForPAI() const {
}
}
qDebug() << "ProteinXtp::countTrypticPeptidesForPAI end";
//qDebug() << "ProteinXtp::countTrypticPeptidesForPAI end";
return count;
}
......
......@@ -283,6 +283,8 @@ void PeptideListWindow::showContextMenu(const QPoint & pos) {
_p_context_menu->exec(mapToGlobal(pos));
}
_p_context_menu->move(mapToGlobal(pos));
_p_context_menu->show();
}
......
......@@ -173,6 +173,7 @@ void ProteinListWindow::showContextMenu(const QPoint & pos) {
_p_context_menu->exec(mapToGlobal(pos));
}
_p_context_menu->move(mapToGlobal(pos));
_p_context_menu->show();
}
......
......@@ -325,6 +325,9 @@ QVariant ProteinTableModel::data(const QModelIndex &index, int role ) const {
if (col == (std::int8_t) ProteinListColumn::pai ) {
return QVariant ((qreal)_p_identification_group->getProteinMatchList().at(row)->getPAI());
}
if (col == (std::int8_t) ProteinListColumn::empai ) {
return QVariant ((qreal)_p_identification_group->getProteinMatchList().at(row)->getEmPAI());
}
if (col == (std::int8_t) ProteinListColumn::molecular_weight ) {
return QVariant ((qreal)_p_identification_group->getProteinMatchList().at(row)->getProteinXtpSp().get()->getMass());
}
......
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