From b33bf9e4388d2793c484a2fef5534fe9037f8b70 Mon Sep 17 00:00:00 2001 From: Olivier Langella <Olivier.Langella@moulon.inra.fr> Date: Fri, 24 Mar 2017 14:40:19 +0100 Subject: [PATCH] sort scan numbers --- src/gui/mainwindow.cpp | 1 + src/gui/peptide_list_view/peptidetablemodel.cpp | 4 ++-- src/gui/protein_list_view/proteintablemodel.cpp | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/gui/mainwindow.cpp b/src/gui/mainwindow.cpp index eee5f2c95..139f0377c 100644 --- a/src/gui/mainwindow.cpp +++ b/src/gui/mainwindow.cpp @@ -152,6 +152,7 @@ void MainWindow::selectXpipFile() { return; } + settings.setValue("path/xpipfile", QFileInfo(filename).absolutePath()); emit operateXpipFile(filename); } catch (pappso::PappsoException & error) { diff --git a/src/gui/peptide_list_view/peptidetablemodel.cpp b/src/gui/peptide_list_view/peptidetablemodel.cpp index 933a843dc..204508f35 100644 --- a/src/gui/peptide_list_view/peptidetablemodel.cpp +++ b/src/gui/peptide_list_view/peptidetablemodel.cpp @@ -160,13 +160,13 @@ QVariant PeptideTableModel::data(const QModelIndex &index, int role ) const { return _p_protein_match->getPeptideMatchList().at(row)->getIdentificationDataSource()->getResourceName(); } if (col == 3) { - return QVariant ((quint16) _p_protein_match->getPeptideMatchList().at(row)->getScan()); + return QVariant ((quint32) _p_protein_match->getPeptideMatchList().at(row)->getScan()); } if (col == 4) { return QVariant ((qreal) _p_protein_match->getPeptideMatchList().at(row)->getRetentionTime()); } if (col == 5) { - return QVariant ((quint8) _p_protein_match->getPeptideMatchList().at(row)->getCharge()); + return QVariant ((qreal) _p_protein_match->getPeptideMatchList().at(row)->getCharge()); } if (col ==6) { return _p_protein_match->getPeptideMatchList().at(row)->getPeptideXtpSp().get()->getSequence(); diff --git a/src/gui/protein_list_view/proteintablemodel.cpp b/src/gui/protein_list_view/proteintablemodel.cpp index 2b210092a..8962a4728 100644 --- a/src/gui/protein_list_view/proteintablemodel.cpp +++ b/src/gui/protein_list_view/proteintablemodel.cpp @@ -205,10 +205,10 @@ QVariant ProteinTableModel::data(const QModelIndex &index, int role ) const { } if (col == 5) { - return QVariant ((quint16) _p_identification_group->getProteinMatchList().at(row)->countValidAndCheckedSpectrum()); + return QVariant ((qreal) _p_identification_group->getProteinMatchList().at(row)->countValidAndCheckedSpectrum()); } if (col == 6) { - return QVariant ((quint16) _p_identification_group->getProteinMatchList().at(row)->countUniqueSequence()); + return QVariant ((qreal) _p_identification_group->getProteinMatchList().at(row)->countUniqueSequence()); } if (col == 7) { return QVariant ((qreal)_p_identification_group->getProteinMatchList().at(row)->getCoverage()); -- GitLab