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

Function getCellLabels

plugins/twitch/twitch-tab.cpp:140–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138}
139
140static QStringList getCellLabels(TwitchToken *token, bool addName = true)
141{
142 assert(token);
143
144 auto result = QStringList();
145 if (addName) {
146 result << QString::fromStdString(token->Name());
147 }
148 result << QString::fromStdString(obs_module_text(
149 token->IsValid()
150 ? "AdvSceneSwitcher.twitchConnectionTab.yes"
151 : "AdvSceneSwitcher.twitchConnectionTab.no"))
152 << QString::number(token->PermissionCount());
153 return result;
154}
155
156static void updateConnectionStatus(QTableWidget *table)
157{

Callers 3

updateConnectionStatusFunction · 0.70
setupTabFunction · 0.70

Calls 4

obs_module_textFunction · 0.85
PermissionCountMethod · 0.80
NameMethod · 0.45
IsValidMethod · 0.45

Tested by

no test coverage detected