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

new precision widget

parent 862136ac
No related branches found
No related tags found
No related merge requests found
......@@ -76,17 +76,9 @@ PeptideWindow::PeptideWindow(ProjectWindow *parent):
QSettings settings;
QString unit = settings.value("peptideview/precision_unit", "dalton").toString();
pappso::mz precision = settings.value("peptideview/precision_value", "0.2").toDouble();
//ui->precision_unit_combobox->setCurrentIndex(ui->precision_unit_combobox->findText(unit));
//ui->precision_spinbox->setValue(precision);
if (unit == "dalton") {
_p_precision = pappso::Precision::getDaltonInstance(precision);
} else {
_p_precision = pappso::Precision::getPpmInstance(precision);
}
QString precision_str = settings.value("peptideview/precision", "0.2 dalton").toString();
_p_precision = pappso::Precision::fromString(precision_str);
ui->file_not_found->setVisible(false);
......
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