| 200 | } |
| 201 | |
| 202 | void FilterSelectionWidget::PopulateSelection() |
| 203 | { |
| 204 | const QSignalBlocker b(this); |
| 205 | clear(); |
| 206 | |
| 207 | AddSelectionGroup( |
| 208 | this, |
| 209 | {obs_module_text("AdvSceneSwitcher.filterSelection.all")}); |
| 210 | _allEndIdx = count(); |
| 211 | |
| 212 | if (_addVariables) { |
| 213 | const QStringList variables = GetVariablesNameList(); |
| 214 | AddSelectionGroup(this, variables); |
| 215 | } |
| 216 | _variablesEndIdx = count(); |
| 217 | |
| 218 | AddSelectionGroup(this, getFilterNames(_source.GetSource())); |
| 219 | _filterEndIdx = count(); |
| 220 | |
| 221 | // Remove last separator |
| 222 | removeItem(count() - 1); |
| 223 | setCurrentIndex(-1); |
| 224 | } |
| 225 | |
| 226 | FilterSelectionWidget::FilterSelectionWidget(QWidget *parent, |
| 227 | SourceSelectionWidget *sources, |
nothing calls this directly
no test coverage detected