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

Function PopulateWindowSelection

lib/utils/selection-helpers.cpp:173–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171}
172
173void PopulateWindowSelection(QComboBox *sel, bool addSelect)
174{
175
176 const auto windows = GetWindows();
177
178 for (const auto &info : windows) {
179 sel->addItem(info.title.c_str());
180 }
181
182 sel->model()->sort(0);
183 if (addSelect) {
184 AddSelectionEntry(
185 sel, obs_module_text("AdvSceneSwitcher.selectWindow"));
186 }
187 sel->setCurrentIndex(0);
188#ifdef WIN32
189 sel->setItemData(0, obs_module_text("AdvSceneSwitcher.selectWindowTip"),
190 Qt::ToolTipRole);
191#endif
192}
193
194void PopulateAudioSelection(QComboBox *sel, bool addSelect)
195{

Callers 4

PauseEntryWidgetMethod · 0.50
SetupIdleTabMethod · 0.50
SetupTitleTabMethod · 0.50
WindowSwitchWidgetMethod · 0.50

Calls 5

AddSelectionEntryFunction · 0.85
obs_module_textFunction · 0.85
modelMethod · 0.80
GetWindowsFunction · 0.50
c_strMethod · 0.45

Tested by

no test coverage detected