| 528 | } |
| 529 | |
| 530 | static QCheckBox *addOption(const TokenOption &option, const TwitchToken &token, |
| 531 | QGridLayout *layout, int &row) |
| 532 | { |
| 533 | auto label = new QLabel(obs_module_text(option.GetLocale().c_str())); |
| 534 | label->setWordWrap(true); |
| 535 | layout->addWidget(label, row, 1); |
| 536 | auto checkBox = new QCheckBox(); |
| 537 | checkBox->setChecked(token.OptionIsActive(option)); |
| 538 | layout->addWidget(checkBox, row, 0); |
| 539 | row++; |
| 540 | return checkBox; |
| 541 | } |
| 542 | |
| 543 | TwitchTokenSettingsDialog::TwitchTokenSettingsDialog( |
| 544 | QWidget *parent, const TwitchToken &settings) |
no test coverage detected