Commit 29d445be authored by Langella Olivier's avatar Langella Olivier
Browse files

update display after spectrum has been loaded and mz format is known

parent 95d5e115
......@@ -266,11 +266,22 @@ PeptideWindow::updateDisplay()
QString("%1").arg(_p_peptide_evidence->getPeptideXtpSp().get()->getMz(
_p_peptide_evidence->getCharge())));
ui->z_label->setText(QString("%1").arg(_p_peptide_evidence->getCharge()));
ui->scan_label->setText(
QString("%1 %2")
.arg(_p_peptide_evidence->getScanNumber())
.arg(pappso::MzFormatEnumStr::toString(
_p_peptide_evidence->getMsRunP()->getMzFormat())));
if(_p_peptide_evidence->getMsRunP()->getMzFormat() ==
pappso::MzFormat::unknown)
{
ui->scan_label->setText(
QString("%1").arg(_p_peptide_evidence->getScanNumber()));
}
else
{
ui->scan_label->setText(
QString("%1 %2")
.arg(_p_peptide_evidence->getScanNumber())
.arg(pappso::MzFormatEnumStr::toString(
_p_peptide_evidence->getMsRunP()->getMzFormat())));
}
ui->sample_label->setText(
_p_peptide_evidence->getMsRunP()->getSampleName());
ui->sample_label->setToolTip(
......@@ -434,6 +445,7 @@ PeptideWindow::doSpectrumSpReady(pappso::MassSpectrumCstSPtr spectrum_sp,
ui->spectrum_widget->setVisible(false);
_spectrum_is_ready = false;
}
updateDisplay();
qDebug() << "end";
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment