| 838 | } |
| 839 | |
| 840 | std::set<TokenOption> TwitchTokenSettingsDialog::GetEnabledOptions() |
| 841 | { |
| 842 | std::set<TokenOption> result; |
| 843 | for (const auto &[id, checkBox] : _optionWidgets) { |
| 844 | if (checkBox->isChecked()) { |
| 845 | TokenOption option; |
| 846 | option.apiId = id; |
| 847 | result.emplace(option); |
| 848 | } |
| 849 | } |
| 850 | return result; |
| 851 | } |
| 852 | |
| 853 | bool TwitchTokenSettingsDialog::AskForSettings(QWidget *parent, |
| 854 | TwitchToken &settings) |
no test coverage detected