Commit 6d9e87ed authored by Langella Olivier's avatar Langella Olivier
Browse files

fix boolean context problem

parent 57cadb2d
...@@ -33,8 +33,7 @@ ...@@ -33,8 +33,7 @@
#include "../utils/groupstore.h" #include "../utils/groupstore.h"
#include "../grouping/groupinggroup.h" #include "../grouping/groupinggroup.h"
#ifndef PROTEINMATCH_H #pragma once
#define PROTEINMATCH_H
class IdentificationGroup; class IdentificationGroup;
...@@ -222,5 +221,3 @@ class ProteinMatch ...@@ -222,5 +221,3 @@ class ProteinMatch
*/ */
bool _proxy_valid = false; bool _proxy_valid = false;
}; };
#endif // PROTEINMATCH_H
...@@ -104,22 +104,15 @@ PeptideListWindow::PeptideListWindow(ProjectWindow *parent) ...@@ -104,22 +104,15 @@ PeptideListWindow::PeptideListWindow(ProjectWindow *parent)
QSettings settings; QSettings settings;
bool hide = settings.value("peptideview/hidenotvalid", "true").toBool(); bool hide = settings.value("peptideview/hidenotvalid", "true").toBool();
if(hide) ui->actionValid_peptides->setChecked(hide);
{
ui->actionValid_peptides->setChecked(Qt::Checked);
}
_p_proxy_model->hideNotValid(hide); _p_proxy_model->hideNotValid(hide);
hide = settings.value("peptideview/hidenotchecked", "false").toBool(); hide = settings.value("peptideview/hidenotchecked", "false").toBool();
if(hide) ui->actionChecked_peptides->setChecked(hide);
{
ui->actionChecked_peptides->setChecked(Qt::Checked);
}
_p_proxy_model->hideNotChecked(hide); _p_proxy_model->hideNotChecked(hide);
hide = settings.value("peptideview/hidenotgrouped", "false").toBool(); hide = settings.value("peptideview/hidenotgrouped", "false").toBool();
if(hide)
{ ui->actionGrouped_peptides->setChecked(hide);
ui->actionGrouped_peptides->setChecked(Qt::Checked);
}
_p_proxy_model->hideNotGrouped(hide); _p_proxy_model->hideNotGrouped(hide);
ui->scan_number_edit->setVisible(false); ui->scan_number_edit->setVisible(false);
......
...@@ -94,22 +94,13 @@ ProteinListWindow::ProteinListWindow(ProjectWindow *parent) ...@@ -94,22 +94,13 @@ ProteinListWindow::ProteinListWindow(ProjectWindow *parent)
QSettings settings; QSettings settings;
bool hide = settings.value("proteinview/hidenotvalid", "true").toBool(); bool hide = settings.value("proteinview/hidenotvalid", "true").toBool();
if(hide) ui->actionValid_proteins->setChecked(hide);
{
ui->actionValid_proteins->setChecked(Qt::Checked);
}
_p_proxy_model->hideNotValid(hide); _p_proxy_model->hideNotValid(hide);
hide = settings.value("proteinview/hidenotchecked", "false").toBool(); hide = settings.value("proteinview/hidenotchecked", "false").toBool();
if(hide) ui->actionChecked_proteins->setChecked(hide);
{
ui->actionChecked_proteins->setChecked(Qt::Checked);
}
_p_proxy_model->hideNotChecked(hide); _p_proxy_model->hideNotChecked(hide);
hide = settings.value("proteinview/hidenotgrouped", "false").toBool(); hide = settings.value("proteinview/hidenotgrouped", "false").toBool();
if(hide) ui->actionGrouped_proteins->setChecked(hide);
{
ui->actionGrouped_proteins->setChecked(Qt::Checked);
}
_p_proxy_model->hideNotGrouped(hide); _p_proxy_model->hideNotGrouped(hide);
......
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