----------------------------------------------------------------------------
| 337 | } |
| 338 | //---------------------------------------------------------------------------- |
| 339 | void InputConfDialog_t::updatePortComboBoxes(void) |
| 340 | { |
| 341 | for (int i = 0; i < 2; i++) |
| 342 | { |
| 343 | getInputSelection(i, &curNesInput[i], &usrNesInput[i]); |
| 344 | |
| 345 | for (int j = 0; j < nesPortComboxBox[i]->count(); j++) |
| 346 | { |
| 347 | if (nesPortComboxBox[i]->itemData(j).toInt() == curNesInput[i]) |
| 348 | { |
| 349 | nesPortComboxBox[i]->setCurrentIndex(j); |
| 350 | } |
| 351 | } |
| 352 | } |
| 353 | |
| 354 | getInputSelection(2, &curNesInput[2], &usrNesInput[2]); |
| 355 | |
| 356 | for (int j = 0; j < expPortComboxBox->count(); j++) |
| 357 | { |
| 358 | if (expPortComboxBox->itemData(j).toInt() == curNesInput[2]) |
| 359 | { |
| 360 | expPortComboxBox->setCurrentIndex(j); |
| 361 | } |
| 362 | } |
| 363 | } |
| 364 | //---------------------------------------------------------------------------- |
| 365 | void InputConfDialog_t::port1Select(int index) |
| 366 | { |
nothing calls this directly
no test coverage detected