| 156 | } |
| 157 | |
| 158 | void SourceSelectionWidget::PopulateSelection() |
| 159 | { |
| 160 | clear(); |
| 161 | if (_addVariables) { |
| 162 | const QStringList variables = GetVariablesNameList(); |
| 163 | AddSelectionGroup(this, variables); |
| 164 | } |
| 165 | _variablesEndIdx = count(); |
| 166 | |
| 167 | AddSelectionGroup(this, _populateSourcesCallback()); |
| 168 | _sourcesEndIdx = count(); |
| 169 | |
| 170 | // Remove last separator |
| 171 | removeItem(count() - 1); |
| 172 | setCurrentIndex(-1); |
| 173 | } |
| 174 | |
| 175 | SourceSelectionWidget::SourceSelectionWidget( |
| 176 | QWidget *parent, const std::function<QStringList()> &populate, |
nothing calls this directly
no test coverage detected