MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / addOption

Function addOption

plugins/twitch/token.cpp:530–541  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

528}
529
530static 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
543TwitchTokenSettingsDialog::TwitchTokenSettingsDialog(
544 QWidget *parent, const TwitchToken &settings)

Callers 1

Calls 5

obs_module_textFunction · 0.85
setCheckedMethod · 0.80
OptionIsActiveMethod · 0.80
c_strMethod · 0.45
GetLocaleMethod · 0.45

Tested by

no test coverage detected