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

using qoverload to find signal in pappso library

parent d00311be
No related branches found
Tags xtpcpp_0.2.31-2
No related merge requests found
......@@ -135,13 +135,14 @@ PeptideWindow::PeptideWindow(ProjectWindow *parent)
&PeptideWindow::setMz);
*/
connect(ui->spectrum_widget,
&pappso::SpectrumWidget::peakChanged,
qOverload<const pappso::Peak *>(&pappso::SpectrumWidget::peakChanged),
this,
&PeptideWindow::setPeak);
connect(ui->spectrum_widget,
&pappso::SpectrumWidget::ionChanged,
this,
&PeptideWindow::setIon);
connect(
ui->spectrum_widget,
qOverload<pappso::PeakIonIsotopeMatch>(&pappso::SpectrumWidget::ionChanged),
this,
&PeptideWindow::setIon);
#else
// Qt4 code
......
......@@ -151,7 +151,8 @@ XicBox::XicBox(XicWindow *parent) : QWidget(parent), ui(new Ui::XicBox)
connect(
_p_xic_window, &XicWindow::reExtractXicNeeded, this, &XicBox::reExtractXic);
connect(ui->xic_widget,
&pappso::XicWidget::xicPeakListChanged,
qOverload<std::vector<std::pair<pappso::XicSp, pappso::XicPeakSp>>>(
&pappso::XicWidget::xicPeakListChanged),
this,
&XicBox::setXicPeakList);
/*
......@@ -554,12 +555,12 @@ XicBox::setIsotopeMassList(
// ui->histo_widget->xAxis->setSubTicks(false);
// ui->histo_widget->xAxis->setTickLength(0, 4);
// ui->histo_widget->xAxis->setRange(0, 8);
/*
ui->histo_widget->xAxis->setAutoTickStep(
false); // <-- disable to use your own value
/*
ui->histo_widget->xAxis->setAutoTickStep(
false); // <-- disable to use your own value
ui->histo_widget->xAxis->setTickStep(1);
*/
ui->histo_widget->xAxis->setTickStep(1);
*/
theoretical_ratio->setData(ticks, theoretical_ratio_data);
......
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