Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PAPPSO
xtpcpp
Commits
6d9e87ed
Commit
6d9e87ed
authored
Nov 09, 2020
by
Langella Olivier
Browse files
fix boolean context problem
parent
57cadb2d
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/core/proteinmatch.h
View file @
6d9e87ed
...
...
@@ -33,8 +33,7 @@
#include
"../utils/groupstore.h"
#include
"../grouping/groupinggroup.h"
#ifndef PROTEINMATCH_H
#define PROTEINMATCH_H
#pragma once
class
IdentificationGroup
;
...
...
@@ -222,5 +221,3 @@ class ProteinMatch
*/
bool
_proxy_valid
=
false
;
};
#endif // PROTEINMATCH_H
src/gui/peptide_list_view/peptidelistwindow.cpp
View file @
6d9e87ed
...
...
@@ -104,22 +104,15 @@ PeptideListWindow::PeptideListWindow(ProjectWindow *parent)
QSettings
settings
;
bool
hide
=
settings
.
value
(
"peptideview/hidenotvalid"
,
"true"
).
toBool
();
if
(
hide
)
{
ui
->
actionValid_peptides
->
setChecked
(
Qt
::
Checked
);
}
ui
->
actionValid_peptides
->
setChecked
(
hide
);
_p_proxy_model
->
hideNotValid
(
hide
);
hide
=
settings
.
value
(
"peptideview/hidenotchecked"
,
"false"
).
toBool
();
if
(
hide
)
{
ui
->
actionChecked_peptides
->
setChecked
(
Qt
::
Checked
);
}
ui
->
actionChecked_peptides
->
setChecked
(
hide
);
_p_proxy_model
->
hideNotChecked
(
hide
);
hide
=
settings
.
value
(
"peptideview/hidenotgrouped"
,
"false"
).
toBool
();
if
(
hide
)
{
ui
->
actionGrouped_peptides
->
setChecked
(
Qt
::
Checked
);
}
ui
->
actionGrouped_peptides
->
setChecked
(
hide
);
_p_proxy_model
->
hideNotGrouped
(
hide
);
ui
->
scan_number_edit
->
setVisible
(
false
);
...
...
src/gui/protein_list_view/proteinlistwindow.cpp
View file @
6d9e87ed
...
...
@@ -94,22 +94,13 @@ ProteinListWindow::ProteinListWindow(ProjectWindow *parent)
QSettings
settings
;
bool
hide
=
settings
.
value
(
"proteinview/hidenotvalid"
,
"true"
).
toBool
();
if
(
hide
)
{
ui
->
actionValid_proteins
->
setChecked
(
Qt
::
Checked
);
}
ui
->
actionValid_proteins
->
setChecked
(
hide
);
_p_proxy_model
->
hideNotValid
(
hide
);
hide
=
settings
.
value
(
"proteinview/hidenotchecked"
,
"false"
).
toBool
();
if
(
hide
)
{
ui
->
actionChecked_proteins
->
setChecked
(
Qt
::
Checked
);
}
ui
->
actionChecked_proteins
->
setChecked
(
hide
);
_p_proxy_model
->
hideNotChecked
(
hide
);
hide
=
settings
.
value
(
"proteinview/hidenotgrouped"
,
"false"
).
toBool
();
if
(
hide
)
{
ui
->
actionGrouped_proteins
->
setChecked
(
Qt
::
Checked
);
}
ui
->
actionGrouped_proteins
->
setChecked
(
hide
);
_p_proxy_model
->
hideNotGrouped
(
hide
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment