mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-06 01:50:40 +02:00
refactor on the gui from review missed out in pr
This commit is contained in:
parent
621bb6cbfd
commit
26acde979f
@ -361,8 +361,9 @@ void qTabSettings::GetCounterMask() {
|
|||||||
auto retval = sls::getSetBits(det->getCounterMask().tsquash(
|
auto retval = sls::getSetBits(det->getCounterMask().tsquash(
|
||||||
"Counter mask is inconsistent for all detectors."));
|
"Counter mask is inconsistent for all detectors."));
|
||||||
// default to unchecked
|
// default to unchecked
|
||||||
std::for_each(counters, [](auto &i) { i.setChecked(false); });
|
for (auto p : counters) {
|
||||||
// std::for_each(counters.begin(), counters.end(), )
|
p->setChecked(false);
|
||||||
|
}
|
||||||
// if retval[i] = 2, chkCounter2 is checked
|
// if retval[i] = 2, chkCounter2 is checked
|
||||||
for (auto i : retval) {
|
for (auto i : retval) {
|
||||||
if (i > 3) {
|
if (i > 3) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user