MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / setupDisplayNum

Method setupDisplayNum

tools/launcher/launcherwindow.cpp:206–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204};
205
206void LauncherWindow::setupDisplayNum()
207{
208 constexpr int MAX_DISPLAYS = 4;
209 auto &comboBox = *ui->displayNumBox;
210 comboBox.clear();
211
212 for (int i = 0; i < MAX_DISPLAYS; ++i)
213 {
214 comboBox.addItem(QString("Display #%1").arg(i));
215 }
216
217 int curDisplayValue = Options::screenDisplayNumberOption.get();
218 if (curDisplayValue < MAX_DISPLAYS)
219 {
220 comboBox.setCurrentIndex(curDisplayValue);
221 }
222}
223
224enum class ScalingType
225{

Callers

nothing calls this directly

Calls 3

clearMethod · 0.45
addItemMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected