| 171 | } |
| 172 | |
| 173 | void 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 | |
| 194 | void PopulateAudioSelection(QComboBox *sel, bool addSelect) |
| 195 | { |
no test coverage detected