|
|
|
|
@ -146,10 +146,13 @@ void DetectorTableModel::applySettings()
|
|
|
|
|
ResourceManager::get()->GetSettingsManager()->SaveSettings();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void DetectorTableModel::toggleAll(const bool state)
|
|
|
|
|
void DetectorTableModel::toggleAll(const bool state, QSortFilterProxyModel* detectorSortModel)
|
|
|
|
|
{
|
|
|
|
|
for(unsigned int detector_idx = 0; detector_idx < detectors.size(); detector_idx++)
|
|
|
|
|
{
|
|
|
|
|
setData(index(detector_idx,1), state, Qt::CheckStateRole);
|
|
|
|
|
if(detectorSortModel->mapFromSource(index(detector_idx, 0)).isValid())
|
|
|
|
|
{
|
|
|
|
|
setData(index(detector_idx,1), state, Qt::CheckStateRole);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|