| 103 | } |
| 104 | |
| 105 | void SourceSettingsButtonSelection::PopulateSelection( |
| 106 | const OBSWeakSource &source) |
| 107 | { |
| 108 | const QSignalBlocker b(this); |
| 109 | clear(); |
| 110 | auto buttons = GetSourceButtons(source); |
| 111 | if (buttons.empty()) { |
| 112 | addItem(obs_module_text("AdvSceneSwitcher.noSettingsButtons")); |
| 113 | } |
| 114 | |
| 115 | for (const auto &button : buttons) { |
| 116 | QVariant value; |
| 117 | value.setValue(button); |
| 118 | addItem(QString::fromStdString(button.ToString()), value); |
| 119 | } |
| 120 | } |
| 121 | |
| 122 | } // namespace advss |
nothing calls this directly
no test coverage detected